Best way to broadcast messages to many clients
Hello all,
I have built an application that sends messages one way to many clients in real time. I'm looking to use cloudflare to prevent overloading my server with too many client connections. My question is what is the best way to accomplish this?
My reading suggests using workers with durable storage and websockets to save the client connections. However I'll need to have a persistent connection to my server and I'm worried about limits/cost.
There was the pub/sub beta but that is now being closed off and they recommend the actor library now but I'm unsure how to use it to accomplish my goal.
Any info or pointers or examples would be much appreciated. Thank you for reading
I have built an application that sends messages one way to many clients in real time. I'm looking to use cloudflare to prevent overloading my server with too many client connections. My question is what is the best way to accomplish this?
My reading suggests using workers with durable storage and websockets to save the client connections. However I'll need to have a persistent connection to my server and I'm worried about limits/cost.
There was the pub/sub beta but that is now being closed off and they recommend the actor library now but I'm unsure how to use it to accomplish my goal.
Any info or pointers or examples would be much appreciated. Thank you for reading