Re: Handling out-of-order messaging w/ Kafka Streams

2016-09-28 Thread Guozhang Wang
Hello Mathieu, Is the web service module and the background component sharing the same producer client to send messages, and are they sending messages to the same topic? If answer is yet to both, then ordering should be preserved, since the producer.send() call will append the messages to the

Re: Handling out-of-order messaging w/ Kafka Streams

2016-09-27 Thread Eno Thereska
Hi Mathieu, If the messages are sent asynchronously, then what you're observing is indeed right. There is no guarantee that the first will arrive at the destination first. Perhaps you can try sending them synchronously (i.e., wait until the first one is received, before sending the second).

Handling out-of-order messaging w/ Kafka Streams

2016-09-26 Thread Mathieu Fenniak
Hey Apache Users, I'm working on a web application that has a web service component, and a background processor component. Both applications will send messages to the same Kafka topic as an object is manipulated. In some cases, a web service call in the service component will send a message to