Re: How is CorrelationId used for matching request and response

2017-10-01 Thread Javed, Haseeb
to be in order. Thanks all for the help. Haseeb From: Javed, Haseeb Sent: Sunday, October 1, 2017 6:39:13 AM To: dev@kafka.apache.org Subject: Re: How is CorrelationId used for matching request and response Thanks all for reaching out. Ted - I am looking

Re: How is CorrelationId used for matching request and response

2017-09-30 Thread Ismael Juma
ds. > <https://github.com/apache/kafka/blob/0.11.0/clients/src/ > main/java/org/apache/kafka/common/requests/AbstractResponse.java> > > > Haseeb > > > From: Jay Kreps > Sent: Saturday, September 30, 2017 11:43:30 PM > To: dev@

Re: How is CorrelationId used for matching request and response

2017-09-30 Thread Javed, Haseeb
43:30 PM To: dev@kafka.apache.org Subject: Re: How is CorrelationId used for matching request and response Yes the idea of the correlation id is to make it easier for the client to match a particular response to the request it answers. Kafka’s protocol allows sending multiple requests without wait

Re: How is CorrelationId used for matching request and response

2017-09-30 Thread Jay Kreps
Yes the idea of the correlation id is to make it easier for the client to match a particular response to the request it answers. Kafka’s protocol allows sending multiple requests without waiting for the response. In theory you can just rely on ordering, but that can be a bit fragile if the client h

Re: How is CorrelationId used for matching request and response

2017-09-29 Thread Ted Yu
Which release / version are you looking at ? In trunk branch, I only see one toSend(): protected Send toSend(String destination, ResponseHeader header, short apiVersion) { return new NetworkSend(destination, serialize(apiVersion, header)); On Fri, Sep 29, 2017 at 4:49 PM, Javed, Hase

How is CorrelationId used for matching request and response

2017-09-29 Thread Javed, Haseeb
The Kafka protocol guide mentions that each request and response contains a correlationId which is a user-supplied integer to match requests and corresponding responses. However, when I look at the code in the class AbstractResponse, we have a method defined as following: public Send toSend(St