Hi Raymond,
If you want all messages delivered in order then you should create the
topic with 1 partition. If you want ordering guarantees for messages with
the same key, then you need to produce the messages with a key.
Using the console producer you can do that by adding
--property "parse.key=tr
Thank you so much Hans for your enlightening, it is definitely greatly
helpful to me as a new starter.
So for my case, what is the right options I should put together to run the
commands for producer and consumer respectively?
Thanks.
**
*Sincerel
There are two concepts in Kafka that are not always familiar to people who have
used other pub/sub systems.
1) partitions:
Kafka topics are partitioned which means a single topic is sharded into
multiple pieces that are distributed across multiple brokers in the cluster for
parallel processi
Thanks. By default, can you explain me why I received the message in wrong
order? Note there are only 9 lines from 1 to 9, but on consumer side their
original order becomes messed up.
~~~sent from my cell phone, sorry if there is any typo
Hans Jespersen 于 2018年5月26日周六 上午12:16写道:
> If you create