views:

16

answers:

0

the operation should be:
- one queue, many consumers are ready, but only one active at time;
- if a consumer fails the other should be elected;
- each consumer in a different host;
- must be sure that only one consumer will act at a time;

What is the best strategy to ensure the uniqueness in the operation and also the contingency of operation ?