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

Update LISTEN/NOTIFY usage to a logical-replication based approach #1

Open
spwoodcock opened this issue Jan 24, 2025 · 0 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@spwoodcock
Copy link
Member

spwoodcock commented Jan 24, 2025

Is your feature request related to a problem? Please describe.

  • Currently the LISTEN/NOTIFY approach requires a trigger on insert into the audits table of Central.
  • An alternative approach that does not require a trigger at all, could be to use logical replication / logical decoding built into Postgres.
  • This is the approach taken by https://github.com/Nextdoor/pg-bifrost and suggested by Sadiq Khoja at ODK.

Note

Perhaps this would have been the best approach from the start, but I wasn't aware this was possible until the implementation was mostly done using LISTEN / NOTIFY!

Describe the solution you'd like

  • Assess the feasibility of swapping the approach / if it is more appropriate.
  • Create a prototype and compare to current implementation.
  • Accept or reject the change to logical replication.
  • Update users about breaking change to tool if needed.
@spwoodcock spwoodcock added enhancement New feature or request help wanted Extra attention is needed labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant