aws-samples / aws-samples/transactional-outbox-pattern

Deleting entities from Outbox table

Open
#5 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
50
Forks
5
PR merge metrics
No merged PRs in 30d

Description

In your example for outbox pattern the QueueService deletes all messages from Outbox table once the message is published to SQS queue. This operation can fail, in this scenario you would want to roll back the message publishing or you need a mechanism to avoid duplicate messages.

```
sqsClient.sendMessageBatch(sendMessageBatchRequest);
outboxRepository.deleteAllInBatch(entities);
```

Contributor guide

Open the contributing guide

Research direction

Start at the QueueService flow shown in the issue, especially sendMessageBatch followed by outboxRepository.deleteAllInBatch(entities). Trace what happens when deletion fails and determine whether the intended outcome is rollback of publishing or a mechanism that prevents duplicate messages. Done requires a clearly chosen and verified failure-handling strategy, but the issue does not specify which approach to use.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.