На стороне брокера есть структура данных , куда регистрируются скажем так запросы требующие ответа, а если ответить можно сразу ,то соответственно отвечает брокер сразу. Apache Kafka has a data structure called the “request purgatory”. The purgatory holds any request that hasn’t yet met its criteria to succeed but also hasn’t yet resulted in an error. The problem is “How can we efficiently keep track of tens of thousands of requests that are being asynchronously satisfied by other activity in the cluster?”