Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove distributed registry #210

Merged
merged 2 commits into from
Jul 25, 2020

Conversation

slashdotdash
Copy link
Member

@slashdotdash slashdotdash commented Jul 22, 2020

The distributed registry was an optimisation added for distributed Erlang deployments where only a single Postgres listener process was used to publish events to subscriptions running on any connected node. Unfortunately it added complexity for unquantified benefits. It also caused annoying errors to be logged whenever :global detected a duplicate named proces when nodes joined a cluster and terminated a conflicting process at random.

The simpler approach is to have a listener process running per node with local publishing. Removing the distributed registry means only a single pub/sub module is used based on Elixir's Registry.

The distributed registry was an optimisation for distributed Erlang deployments where only a single Postgres listener was used to publish events to subscriptions. Unfortunately it added complexity for unquantified benefits.

Removing the distributed registry simplifies the code to only use a single pub/sub module based on Elixir's `Registry`.
@slashdotdash slashdotdash merged commit e1cad17 into develop Jul 25, 2020
@slashdotdash slashdotdash deleted the feature/remove-distributed-registry branch July 25, 2020 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant