amazon-dynamodb-lock-client icon indicating copy to clipboard operation
amazon-dynamodb-lock-client copied to clipboard

amazon-dynamodb-lock-client as singleton

Open gianluigiruggeri opened this issue 2 years ago • 0 comments

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?

gianluigiruggeri avatar Oct 13 '22 12:10 gianluigiruggeri