3 ms·
Did you try the Redis adapter that ships with Phoenix.PubSub (which Channels use)?
by conradfr 2y ago
Did you try the Redis adapter that ships with Phoenix.PubSub (which Channels use)?
- wutwutwat 2y agoYes, and I mentioned redis above. You need a message broker with 2+ servers, be it pg, redis, or distributed erlang. It's still more complex than a single server setup, which was my point. It's easy to say you don't have to think about things working when you have 1 server, it's not easy to say that past 1 server, because the complexity added changes that picture.
- davydog187 2y agoOk but in literally any other language you minimally need this setup to do PubSub. Elixir gives more options and lets you do it natively. Also, there are simpler options for clustering out there like https://github.com/phoenixframework/dns_cluster https://github.com/phoenixframework/dns_cluster (Disclaimer: I am a contributor)
- conradfr 2y agoOk it was not clear if you used Redis directly with some custom code or the integrated stuff. Anyway I agree that once you go with more than one server it's a whole new world but not sure if it's easier in any other language.