-
Notifications
You must be signed in to change notification settings - Fork 2
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
[SW-581] Refactor processInstantOutbox
to use monitor with hint
#31
Merged
kgiannakelos
merged 6 commits into
main
from
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
Sep 12, 2024
Merged
[SW-581] Refactor processInstantOutbox
to use monitor with hint
#31
kgiannakelos
merged 6 commits into
main
from
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
Sep 12, 2024
Conversation
This file contains 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
kgiannakelos
changed the title
WIP - SW-581: Refactor
WIP - SW-581 Refactor Sep 2, 2024
processInstantOutbox
to use monitor with hintprocessInstantOutbox
to use monitor with hint
kgiannakelos
changed the title
WIP - SW-581 Refactor
WIP - [SW-581] Refactor Sep 2, 2024
processInstantOutbox
to use monitor with hintprocessInstantOutbox
to use monitor with hint
kgiannakelos
force-pushed
the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
2 times, most recently
from
September 3, 2024 20:28
036b452
to
f3642cf
Compare
kgiannakelos
changed the title
WIP - [SW-581] Refactor
[SW-581] Refactor Sep 3, 2024
processInstantOutbox
to use monitor with hintprocessInstantOutbox
to use monitor with hint
kgiannakelos
force-pushed
the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
from
September 4, 2024 08:11
f3642cf
to
1c63062
Compare
kgiannakelos
force-pushed
the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
3 times, most recently
from
September 6, 2024 07:45
45c14be
to
92d80e8
Compare
panos-tr
reviewed
Sep 6, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!!
Great, great description!! 👏 👏
core/src/main/kotlin/io/github/bluegroundltd/outbox/TransactionalOutboxBuilder.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/io/github/bluegroundltd/outbox/SimpleOutboxHandler.kt
Outdated
Show resolved
Hide resolved
Flag which indicates whether new instant processing mechanism should be used or not. The new mechanism uses `monitor` to fetch the item along with its group sibling items and support their ordering while the old mechanism processes the instant outbox item directly without fetching it from store. One downside of the new mechanism is that the advisory locks will be used more frequently which may result some delays on the monitor executions. Both mechanisms will be kept and switch via this flag until the old one eventually gets dropped. [SW-581]
kgiannakelos
force-pushed
the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
from
September 6, 2024 18:28
92d80e8
to
36e40bd
Compare
panos-tr
reviewed
Sep 10, 2024
core/src/main/kotlin/io/github/bluegroundltd/outbox/TransactionalOutbox.kt
Show resolved
Hide resolved
panos-tr
approved these changes
Sep 12, 2024
This is required in order to be able to execute all items that potentially belong to the same group as the one being instantly processed. Since hint (outbox id) is passed through the filter, clients can manipulate how the item is retrieved via `fetch`. To ensure that we execute only this item in case of an erroneous fetch implementation, we also filter it on runtime. Also added `@Deprecated` since this method will eventually be dropped in favor of directly using monitor with a hint. [SW-581]
Ensures that instant outbox items are picked up by monitor's fetching. [SW-581]
kgiannakelos
force-pushed
the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
from
September 12, 2024 14:00
000f593
to
70dd34c
Compare
kgiannakelos
deleted the
chore/sw-581-refactor-instant-processing-to-use-standard-processing-flow
branch
September 12, 2024 14:02
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.
Description
✨ Features
Adds
instantOrderingEnabled
flag♻️ Refactoring
Refactors
processInstantOutbox
to usemonitor
with hint⬆️ Version
2.2.0
Resolves [SW-581]