I'm using:
- Azure platform to run some microservice architecture software solution.
- microservices are using the Azure-EventHub for communicating in special cases.
- Kubernetes with 2 clusters (primary, secondary)
- per application namespace, there is 1 event-listener pod running per cluster for consuming from eventhub
The last point is relevant to my current problem: The load balancers will share traffic between the primary and secondary clusters. This means that 2 event-listener-pods are running per application at the same time. So they are just reacting to events but some times they are consuming the same event from the event hub and this causes some duplicated notification mails.
So finally my question is: How can I avoid reading the same event twice the same time? I thought event hub index is always increasing but starting at the same moment is not "secured".