-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Reactive Stream and Kotin Coroutines Support for Distributed Locks #8630
Comments
I'm sorry it is not fully clear what you mean.
So, we have a scope which is blocked for others. How that might look from a reactive streams perspective? Well, just give us more info about your idea. P.S. I believe you made a mistake in your post: |
This is probably your SO question: https://stackoverflow.com/questions/76315192/redislockregistry-with-webflux-and-kotlin |
OK. So, I see there is a nice I guess it is now just a matter of a proper impl of this With Reator's |
I know the Mutex, what I need is a distributed lock implementation. In a Spring WebFlux project, when using R2dbc to do RDBMS operations, I am eager there is a R2dbc implementation of the LockRegistry instead of Jdbc version. |
It is not my question(my SO account is hantsy), but we have similar requirements in our real world project. |
Right. That’s why I’m asking: give me a sample how end-user API suppose to look like. Or even better: take an opportunity and contribute this feature! |
There are some open source reactive lock implementation project using the Reactor project,
But they lacks a reactive LockRegistry abstract to apply in a cluster environment. |
How so? The problem with those libraries that they are personal, single-person projects and looks like they are a bit out-dated anyway. If we really want to go this direction I'd suggest to raise a separate issue for Kotlin Kotlin Coroutines where impl would be fully different than Reactor one and based on the mentioned
For |
It is great. Spring introduce Reactive stack since 5.0, I just hope all Spring subprojects are aligned to reactive stack, thus when starting a Spring reative project, as a developer we will use the reactive APIs smoothly without gaps(I mean some features only support traditional blocking API). |
Nice work, That's what I've been having trouble with lately, but I can't find a solution on the Internet, and Redission doesn't support locking in webflux. |
Currently I am working on a Spring WebFlux/Kotlin Coroutines/R2dbc project, tried to use Spring Integration Locks, but found it only supports the legacy jdbc etc. But do not R2dbc.
If possible to add an Reactive and Kotlin Coroutines alternative to the existing
LockRegistry
.ReactiveLockRegistry
CoroutinesLockRegistry
(Spring Data naming for Kotlin Coroutines) orCoLockRegistry
(Spring framework naming for Kotlin Coroutines)The text was updated successfully, but these errors were encountered: