spg icon indicating copy to clipboard operation
spg copied to clipboard

curious about the multi region feature

Open benoitc opened this issue 4 years ago • 2 comments

Right now everything is on top of the erlang distribution which is hard to scale over multiple clusters. How do you plane to handle multiple regions then? How the regions will communicate?

benoitc avatar Apr 24 '20 11:04 benoitc

Any goods ideas how to start :pg as part of the supervision tree but not race the join of the actual app? So for example during the application init, I want to join a group, but :pg is not running, and its a chicken egg problem.

vans163 avatar May 06 '20 01:05 vans163

For multi-region, this is going to be somewhat different "rpg" (routing process group), where processes are coupled with meta-data (essentially, both process & scope can provide attributes).

@vans163 one option could be to start spg as an application, that you app depends on. You can configure which scopes to start.

max-au avatar May 29 '20 00:05 max-au