Use microprofile reactive-messaging for SQS and add pattern resilience for messaging#220
Draft
matheusandre1 wants to merge 2 commits intomcruzdev:mainfrom
Draft
Use microprofile reactive-messaging for SQS and add pattern resilience for messaging#220matheusandre1 wants to merge 2 commits intomcruzdev:mainfrom
matheusandre1 wants to merge 2 commits intomcruzdev:mainfrom
Conversation
a14c403 to
3091808
Compare
Owner
mcruzdev
reviewed
Feb 19, 2026
mcruzdev
requested changes
Feb 19, 2026
3091808 to
63613d7
Compare
Contributor
Author
|
Take a look @mcruzdev the outbox pattern requires idempotence, right? |
29 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request covers, Closes #46 , Closes: #45
SQS.javapersisted aRecordin PostgreSQL (QuarkusTransaction.requiringNew)Then, it sent the result to SQS via
@Outgoing("whatsapp-recognized")Instead of sending directly to SQS, we write the output message to an outbox table within the same transaction that persists the
Record. A separate process (relay) reads from this table and sends it to SQS asynchronously and resiliently.I believe that so far it follows good practices of the outbox pattern.
Guaranteeing:
RecordandOutboxMessageare in the same JPA transaction-Resilience: If the relay fails to send to SQS, the message remains
PENDINGand is retriedcreatedAtorder; FIFO of the destination queue is preserved viamessageGroupIdcontent_based_deduplication = truein Terraform