Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions on low latency websocket server with 10K concurrent clients? #14

Open
indexk09 opened this issue Mar 17, 2022 · 0 comments
Open

Comments

@indexk09
Copy link

Hi, @panjf2000 I have few questions on the websocket server

  1. Isn't this https://github.com/gnet-io/gnet-examples/blob/v2/websocket/server/websocket.go#L70 a blocking call?

  2. I am trying to build a websocket push based server that broadcasts a stream of notifications coming from a message bus to all the connected websocket clients . The requirement I have is super low latency, meaning the server should be able to broadcast messages to atleast 10K clients connected concurrently under 5ms. so the Question I have here is do I need to shard the 10K clients, and then manage state for active and disconnected clients and then process clients by shard myself or gnet does sll of this for me? Do you have any other suggestion on how best to accomplish this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant