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

DP-396: MQ Outbox Pattern - Publisher #493

Merged
merged 9 commits into from
Aug 28, 2024

Conversation

jakzal
Copy link
Member

@jakzal jakzal commented Aug 21, 2024

This is the first of several PRs to implement the Outbox Pattern in order to improve message publishing resilience.

First, we introduce the DatabasePublisher that is able to persist outgoing messages in a database. This operation can be performed in the same transaction as other database operations. It will prevent situations when the database changes succeed, but the message fails to be published.

In a subsequent PR, we'll provide a DatabaseDispatcher implementation that will pull pending messages from the database and publish them on the message queue.

@jakzal jakzal force-pushed the feature/DP-396-message-outbox-publisher branch from 37b34c3 to 83c18ae Compare August 22, 2024 07:03
@jakzal jakzal marked this pull request as ready for review August 23, 2024 17:30
@jakzal jakzal marked this pull request as draft August 23, 2024 17:32
@jakzal jakzal marked this pull request as ready for review August 23, 2024 17:35
@jakzal jakzal merged commit cb17dd2 into main Aug 28, 2024
8 checks passed
@jakzal jakzal deleted the feature/DP-396-message-outbox-publisher branch August 28, 2024 08:49
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.

3 participants