How to ensure single running process on a distributed environment

On a distributed environment I have many nodes running the same code.

I have a process that handles an event and I want to make sure it is only handled once.

What are the recomended solutions for this requirement?

Here are my options from the top of my head:

Using a message broker (RabbitMQ, ActiveMQ, Kafka).

for instance, creating only one queue for this message.

But I don't like adding another component to the stack.

I dont really like adding a message brokers to the stack just for process sync.

use quartz. .

But I need a shared...

Read More »

By: StackOverFlow - Sunday, 15 April

Related Posts