elt547
Is there a maximum number of possible or advised PubSub/channel subscriptions?
What’s a reasonable upper limit for subscriptions per client in phoenix? Not sure what the capabilities are. What is the typical first symptom that you’ll notice if you are opening too many connections?
Most Liked
benwilson512
The Road to 2 Million Websocket Connections in Phoenix - Phoenix Blog is pretty old but it’s still relevant.
The million dollar question though is: What are those websockets doing? This blog post helps analyze the upper limit from the perspective of just raw open sockets, but the answer to your question could be “just 1” if the socket is moving gigs per second and you’re doing tons of processing on each byte.
Speaking in very general and vague terms though: If you’re doing “simple” things and on a “reasonably sized” webserver, you could probably do tens of thousands of subscriptions without even really thinking about it. You’re more likely to need to optimize your DB querying first.
kokolegorille
You can go a long way before reaching a limit…
If You mean connections as in websocket, channels are multiplexed over socket.
It should not be something to worry about ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









