Rudolf Manusadzhian

Developing software at Simplebet

N+1 problem by misusing Phoenix PubSub and how to spot it with OpenTelemetry.

Phoenix LiveView is awesome! Accompanied with Phoenix PubSub it provides the superpower for building interactive real-time UX. But "with great power comes great responsibility". In this article we'll take a look at the problem and how to detect it with OpenTelemetry.

Doctest functions with side effects

Write doctests for public functions that have side effects in elixir.

SQL CASE clause with Ecto

We will explore the ways to send `SQL CASE` conditional expression to Postgres using Ecto. Also we will touch elixir macros and get familiar with `unquote_splicing/1`.