Skip to content

Can spring-integration provide renewable distributed locks in the future? #3636

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

Closed
maozhen520 opened this issue Sep 23, 2021 · 1 comment
Closed
Labels
status: duplicate There is already an issue similar to this. The link to it should be present

Comments

@maozhen520
Copy link

This is not a bug:

Can spring-integration provide renewable distributed locks in the future? Similar to redisson, it can renew the expiration time of the lock. I know that although I can directly use redisson as a redis client, our project has already used spring-integration, It is good, but we need to use renewable distributed locks, so ask, will spring-integration support renewable lock-related operations later, or why not , I am curious about your ideas

@maozhen520 maozhen520 added status: waiting-for-triage The issue need to be evaluated and its future decided type: enhancement labels Sep 23, 2021
@artembilan
Copy link
Member

Starting with version 5.4 the JdbcLockRegistry already implements such a RenewableLockRegistry: https://docs.spring.io/spring-integration/docs/current/reference/html/jdbc.html#jdbc-lock-registry.

You request is really valid and if we can come up with some contract for specific LockRegistry we can add this hook over there. Like you brought RedisLockRegistry for example.
I mean we are planning to do all of this, but on demand and when resources permit.
The contribution is welcome: https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc !

Plus we can treat this as a duplicate of this one and close respectively: #3272

@artembilan artembilan added status: duplicate There is already an issue similar to this. The link to it should be present and removed type: enhancement status: waiting-for-triage The issue need to be evaluated and its future decided labels Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate There is already an issue similar to this. The link to it should be present
Projects
None yet
Development

No branches or pull requests

2 participants