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

amazon-dynamodb-lock-client as singleton #85

Open
gianluigiruggeri opened this issue Oct 13, 2022 · 0 comments
Open

amazon-dynamodb-lock-client as singleton #85

gianluigiruggeri opened this issue Oct 13, 2022 · 0 comments

Comments

@gianluigiruggeri
Copy link

Hi guys,

I would like to use this library in a SpringBoot service.
Is it a good idea to use the client as a singleton?
I mean, I'll instantiate the client in order to have only one background thread (HeartbeatBackgroundThread) that will check locks.
Is this a good way?

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

No branches or pull requests

1 participant