mardi 2 mai 2017

Curator Framework or?

We have microservice architecture, where in we have multiple nodes running the same micro-service. I have to schedule a job to be executed once a day by only one node. What is the best way of achieving this ? Some of the options I have researched in to

  1. Curator framework ->My microservice is taken care of by Docker Swarm, so I don't need zookeeper. Using Curator framework will introduce a new dependency on zookeeper and I don't like it so much.
  2. Row based. Which ever node first gets to start working on the job flips the switch and the other nodes see that it is in progress and don't work on it. No new dependencies added.

Are there other options out there that I can look at? Am I missing something?

Thanks

Aucun commentaire:

Enregistrer un commentaire