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

Notify when Redis Transaction got committed #2342

Open
BernhardBln opened this issue Sep 5, 2023 · 0 comments · May be fixed by #2343
Open

Notify when Redis Transaction got committed #2342

BernhardBln opened this issue Sep 5, 2023 · 0 comments · May be fixed by #2343
Assignees

Comments

@BernhardBln
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In @RedisTransactional projections, we need to know when the transaction got committed, in order to rebuild some caches.

Describe the solution you'd like
I'd like to have an interface that I can implement in @RedisTransactional annotated projections, that gives me onCommit() and onRollback() handlers.

Describe alternatives you've considered
Currently we do this via a subscription on the state bucket, relying on some internal information like the name of the bucket, which is a bit dangerous. Also it requires the server to have a specific notify-keyspace-events configuration for it to work.

@BernhardBln BernhardBln self-assigned this Sep 7, 2023
@BernhardBln BernhardBln linked a pull request Sep 7, 2023 that will close this issue
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 a pull request may close this issue.

1 participant