On Jul 18, 2022, at 7:11 AM, kant kodali <kant...@gmail.com> wrote:
Hi All,I am wondering how to broadcast a stream of messages I get (one by one...each message is of size 5KB) to 20K websocket clients to achieve the lowest latency and max throughput possible on a 10Gbps network? I tried creating a go routine for each socket and calling socket.write but this approach had a median latency of 75ms. Goal is to be under 5ms so I wonder what is the best way to dispatch to 20K concurrent clients? my machine got about 4 cores so I also tried splitting 20K socket descriptors into groups of 16 such that each go routine takes care of 16 sockets instead of 1. This approach also brought down the median latency to 50ms but not 5ms. Any suggestions will be appreciated!Thanks
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/CA%2BiiNx80YON9zwUMgsLBpTU6kv0FPnHQgtmox3ULjCOLrgMd0g%40mail.gmail.com.
On Jul 18, 2022, at 10:42 AM, kant kodali <kant...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/CA%2BiiNx9hMCzHHf_yXRGb0BdSeAGEkQ-%3DnY-Luz9VP0S%3DVw1juw%40mail.gmail.com.
On Jul 18, 2022, at 11:27 AM, Robert Engels <ren...@ix.netcom.com> wrote:
On Jul 19, 2022, at 6:14 AM, Robert Engels <ren...@ix.netcom.com> wrote:
sendmmsg won’t help. That is for sending multiple messages on a single socket. He needs to the send the same message on multiple sockets.
On Jul 19, 2022, at 6:36 AM, Robert Engels <ren...@ix.netcom.com> wrote:
On Jul 19, 2022, at 11:52 AM, kant kodali <kant...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/CA%2BiiNx-%3D%2BnizZO0oi9NgETrv8VGd9x9ve7TtcHPsFbc6f74_vg%40mail.gmail.com.
On Jul 19, 2022, at 12:27 PM, kant kodali <kant...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-dev/CA%2BiiNx-dWDxqhkgkFQ%3Deh6wfQs_MpjV7E3ZkLUht%3Db9Dj7eRcg%40mail.gmail.com.