title: How to listen for the right ACK message from Kafka
body: <p>I am doing a <em>POC</em> with Spring Boot &amp; Kafka for a transactional project and I have the following doubt:</p>
  
  <p><strong>Scenario:</strong>
  One microservices <em>MSPUB1</em> receives Requests from the customer. That requests publish a message on topic <em>TRANSACTION_TOPIC1</em> on Kafka but that Microservice could receive multiple requests in parallel. The Microservice listens the topic <em>TRANSACTION_RESULT1</em> to check that the transaction finished.</p>
  
  <p>In the other side of the Streaming Platform, another Microservice <em>MSSUB1</em> is listening the topic <em>TRANSACTION_TOPIC1</em> and process all messages and publish the results on: <em>TRANSACTION_RESULT1</em></p>
  
  <p>What is the best way from <em>MSPUB1</em> to know if the message on topic <em>TRANSACTION_RESULT1</em> matches with his original request? The microservice <em>MSPUB1</em> could have a ID for any message published on the initial topic <em>TRANSACTION_TOPIC1</em> and be moved to <em>TRANSACTION_RESULT1</em></p>
  
  <p><strong>Question:</strong>
  When you are reading the partition, you move the pointer but in a concurrency environment with multiple requests, how to check if the message on the topic <em>TRANSACTION_RESULT1</em> is the expected?</p>
  
  <p>Many thanks in advance</p>
  
  <p>Juan Antonio</p>