You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 3surely a pub/sub message queue solution will easily scale to 100,000 rps?Ewan– Ewan2022-03-18 19:23:26 +00:00Commented Mar 18, 2022 at 19:23
- 2the websocket server is limited to the number of users it supports right? so there is a natural limit to the number of messages. I guess with no restrictions, you could have a single user sign up to every other message on the system? but they wouldnt be able to read them allEwan– Ewan2022-03-19 09:51:41 +00:00Commented Mar 19, 2022 at 9:51
- 1what's the throughput on your load balancer?Ewan– Ewan2022-03-19 09:59:47 +00:00Commented Mar 19, 2022 at 9:59
- 2If the number of clients per WebSocket server is very small compared to the number of active topics, then it is unlikely that the WebSocket server would be overwhelmed with the amount of messages. Precondition is that each WebSocket server subscribes to only those topics that its clients are currently interested in. This in turn requires that messages are published on sufficiently fine-grained topics. While databases like Redis and Postgres provide basic PubSub systems, a system with more difficult requirements will likely look at Kafka instead.amon– amon2022-03-19 10:21:24 +00:00Commented Mar 19, 2022 at 10:21
- 1One approach would be to shard the channels/chat rooms: every user in a particular chat room connects to a particular WebSocket server, which does not send the messages to other WebSocket servers. If even one chat room is still too big for one WebSocket server, you could cluster several together, with a PubSub server that only handles traffic for that chat room (or a few chat rooms, up to the capacity of one PubSub server)Stack Exchange Broke The Law– Stack Exchange Broke The Law2022-03-21 09:42:53 +00:00Commented Mar 21, 2022 at 9:42
| Show 5 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you