How do Phoenix channels work?

Grüezi,

By default it uses pg2, but You can switch to another PubSub if You wish… like Redis for example.

I usually set a user channel, something like “user:#{user.id}”, this way it’s possible to reach anybody by it’s id.

I would recommend this book, because it’s about the subject You are interested in…

1 Like