The fastest way to send a WebSocket broadcast to over 100,000 users

Viewed 450

we have an app where there are around 100k connected users. What is the fastest way to send a WebSocket message from the server to all connected clients? We have tried with a loop but that is too slow.

What's an efficient way to do it using WebSocket API? We are not looking to switch to GraphQL/AppSync or MQTT over IoT.

We only have a couple of seconds for each broadcast to hit every connected user.

Any recommendations?

Thanks,

0 Answers
Related