I have two microservices and they are talking to each other using pub sub pattern.
I want my serviceA to publish 100 messages of certain type and once all the messages are processed successfully then only I want next 100 messages to get published.
Does anyone have any idea how can track the status of each message and to let my service know that first 100 are completed, now publish next 100?