centrifugal / centrifugo

Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably. Set up once and forever.
https://centrifugal.dev
Apache License 2.0
8.28k stars 584 forks source link

[question] Multi region Centrifugo Setup #524

Open bartvanvliet opened 2 years ago

bartvanvliet commented 2 years ago

Hi!

Would love to learn more about deploying Centrifugo in a multi region setup, was thinking about deploying it to the US, EU and ASIA. I've read that it connects to a Redis instance, so maybe it would be possible to connect it with Amazon ElastiCache for Redis - Global Datastore, but I'm not familiar with how the latency will be globally.

Do you have any examples of deploying it in such a way?

Thanks,

FZambia commented 2 years ago

Hello, personally I never had experience with this, so can't provide any valuable input. I think the task of landing users to closest Centrifugo node is solvable with modern cloud provider infrastructure, but regarding node-broker communication layer and latency – that's a good question.

Centrifugo should work fine with Redis-compatible data stores - which provide compatible PUB/SUB and Stream data structure. Seems that ElastiCache provides support for both - so should be possible to run with it.

Let's keep this open for some time if we have Centrifugo users who solved this and who can share some information.