In the world of containers - how are people doing ...
# cfml-general
a
In the world of containers - how are people doing locking?
Redis maybe?
s
redis and in the db mostly
a
thanks. That's what I was thinking. I guess with redis I'd do "if lock key exists -> throw".
It's that or "if lock key exists -> sleep(1000) -> try again".
s
usually we do the latter, and then throw after that if it still isn't working
a
Useful to know that works in the real world. The latter would be closer to how
cflock
behaves
Looks like Redisson has an implementation of countdownLatch https://redisson.org/glossary/java-countdownlatch.html
Ah - pro version only