-
Notifications
You must be signed in to change notification settings - Fork 519
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 a ShedLock provider for GCP Spanner #691
Comments
Hi, thanks for feedback. Unfortunattely I do not have capacity to implement it, but I accept pull-requests 😈 It's quite easy to impement a LockProvider, just mimic some of the existing providers that is similar to the Data Spanner. |
Hi Lukas, thanks for the rapid feedback. We will look into the possibility of doing this and get back to you. |
We've completed an implementation but it hasn't been fully tested against spanner yet. |
To use spanner with ShedLock.
`@Configuration
public class ShedLockConfig {
}` |
Is your feature request related to a problem? Please describe.
My team is planning to migrate our Spring based services, which make use of ShedLock, to use Spanner databases using the spring-cloud-gcp-data-spanner module provided by Google. Platform choices mean that we are unable to use JDBC and are therefore unable to use the JDBC template provider, which appears to be the only provider that is capable of supporting Spanner at this time.
Describe the solution you'd like
We'd like to use a provider that is compatible with and dependent upon the Spring Cloud GCP Data Spanner module without the need to add any JDBC dependencies and configuration.
Describe alternatives you've considered
We've considered using only the JDBC template as a database connection but this is not the preferred approach of the client and prevents us from using Spanner to maximum effect. We've also looked at using JDBC just for ShedLock and a different Spring Cloud GCP Data Spanner connection for everything else, but this has its own performance impact.
Additional context
The spring-cloud-gcp-data-spanner module is provided by Google as part of the spring-cloud-gcp project: https://github.com/spring-cloud/spring-cloud-gcp
The text was updated successfully, but these errors were encountered: