rabbitmq - How to deliver events to a shard? -


my app consumes events rabbitmq queue events, updates application state , acks rmq (or nacks if event malformed). each event contains customerid identifier randomly generated string of fixed length.

i want scale app horizontally several nodes giving particular range of customers. ideally if had n nodes available, expression hash(customerid) mod n give me owner node customerid.

please suggest possible setup, give me guarantees

  1. every event processed
  2. no event processed twice


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -