4 ms·
I’ve used to this for distributed locking on jobs and it’s been great. The other janky implementation (without some distributed locks or task manager) would be
by mrhands556 5y ago
I’ve used to this for distributed locking on jobs and it’s been great. The other janky implementation (without some distributed locks or task manager) would be incrementAndGet with a TTL. Obviously this runs into a lot more edge cases.