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

Lock based leadership #606

Merged
merged 12 commits into from
Dec 30, 2021
Merged

Lock based leadership #606

merged 12 commits into from
Dec 30, 2021

Commits on Dec 30, 2021

  1. Configuration menu
    Copy the full SHA
    4178784 View commit details
    Browse the repository at this point in the history
  2. Migrate notifier to connection callback module

    An in-progress notifications update allows injecting a callback module
    into `Postgrex.Notifications`. The callback can handle listeners and
    notifications however the application requires, and more importantly,
    it allows running arbitrary queries.
    
    By switching to our own notification implementation we get control over
    relaying messgaes to subscribers (rather than proxying them all through
    the connection) and keep a persistent connection for leadership
    elections.
    sorentwo committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    6433102 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d082f21 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    475d5c2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    64334b7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e5b20d1 View commit details
    Browse the repository at this point in the history
  7. Remove circuit breaker docs, functions, and config

    The last remaining circuit breaker was used in the Postgres notifier,
    which no longer manages its own connection. Instead, the persistent
    connection manages auto reconnection by itself and between the
    `Connection.connected?` and `Senator.leader?` callbacks, plugins or
    other connection sensitve code can tailor behavior.
    sorentwo committed Dec 30, 2021
    Configuration menu
    Copy the full SHA
    2ff5721 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    63bc324 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    18b0e80 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a474c91 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bb0b0e3 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    11de1e8 View commit details
    Browse the repository at this point in the history