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

Implement a sparse outstanding index for the dynamo db outbox [v9] #3295

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

dhickie
Copy link
Contributor

@dhickie dhickie commented Sep 4, 2024

This resolves #3293 by updating the key of the Outstanding index so that it becomes a sparse index and is only populated with messages that are yet to be dispatched.

It does this by adding a new attribute to the record, OutstandingCreatedTime, which is identical to CreatedTime but it only populated if the message is yet to be dispatched. Once a message is marked as dispatched, OutstandingCreatedTime is set to null, thereby removing the attribute from the record.

Note that this is a breaking change to the table structure - any outboxes created prior to the introduction of this PR will not work and will result in exceptions until a migration to the new outbox structure has taken place.

@dhickie dhickie marked this pull request as ready for review September 4, 2024 12:47
Copy link
Member

@iancooper iancooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Dom. Makes sense, and thanks for picking this one up.

@iancooper iancooper merged commit 70137f7 into BrighterCommand:release/9X Sep 4, 2024
16 of 17 checks passed
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.

2 participants