title: Microservices handeling events from redis pubsub
body: <p>I am trying to create a microservice that listen to a redis pubsub channel and persist some events into a DB.</p>
  
  <p>In my test case i am spinning up 2 instances of my microservice both listening to the same channel.</p>
  
  <p>the thing that i am facing now is that for every events received both instances update the DB at the same time and i wanted to know if there are ways to prevent this action?</p>
  
  <p>like for every events one instance will be elected to perform the update?</p>