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

Share database connection for notifications #225

Merged
merged 2 commits into from
Nov 13, 2020

Conversation

slashdotdash
Copy link
Member

@slashdotdash slashdotdash commented Nov 12, 2020

This pull request reduces the number of database connections used by an event store by allowing the database connection used for Postgres notifications to be shared by multiple event store instances. This is configurable via the :shared_connection_pool options (see #216). Each event store instance will only use one additional database connection, used to hold advisory locks, when sharing a connection pool.

@slashdotdash slashdotdash force-pushed the feature/postgrex-shared-connection branch from 10c2bba to ba54708 Compare November 13, 2020 11:05
Rework notifications supervisor to use shared Postgres database connection for notifications.
Handle database connection errors when reading events from notifications.
@slashdotdash slashdotdash force-pushed the feature/postgrex-shared-connection branch from 938e445 to c074b45 Compare November 13, 2020 12:19
@slashdotdash slashdotdash merged commit 818df8d into master Nov 13, 2020
@slashdotdash slashdotdash deleted the feature/postgrex-shared-connection branch November 13, 2020 17:31
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