spg
spg copied to clipboard
curious about the multi region feature
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?
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.
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.