I think you may use one partition only?  

______________________________________________________________

Gene Huijian Yi
TS - FM - App

Standard Chartered Global Business Services Co., Ltd.
Phone:  +862259806930
Address:        Standard Chartered Center,  3/F No.35 Xinhuanbei Road, 
        TEDA,  Tianjin - 300457
E-mail: gene...@sc.com
______________________________________________________________
Please consider the environment before printing this email

-----Original Message-----
From: Tushar Madhukar [mailto:tushar.madhu...@gmail.com] 
Sent: Thursday, June 28, 2018 7:45 AM
To: users@kafka.apache.org
Subject: [External] Re: Is order of data is not maintained in Kafka, Is Kafka 
not suitable to do manage State / Transactional Scenarios such as Updating a 
Bank Account scenarios etc

Hi,

Kafka guarantees ordering only within a partition (not across partitions in
a topic) ie consumers reading off a partition will always get records in
the order they were *received into the partition*.

Note that in some cases of retries by a non- idempotent producer, the order
in which a producer sends data can be different from the order in which
they are received into the partitions. An idempotent producer can be used
to avoid this scenario.




On Thu., 28 Jun. 2018, 8:33 am Malik, Shibha (GE Renewable Energy,
consultant), <shibha.ma...@ge.com> wrote:

> Is order of data is not maintained in Kafka, Is Kafka not suitable to do
> manage State / Transactional Scenarios such as Updating a Bank Account
> scenarios etc
>

This email and any attachments are confidential and may also be privileged. If 
you are not the intended recipient, please delete all copies and notify the 
sender immediately. You may wish to refer to the incorporation details of 
Standard Chartered PLC, Standard Chartered Bank and their subsidiaries at 
https://www.sc.com/en/our-locations. Please refer to 
https://www.sc.com/en/privacy-policy.html for Standard Chartered Bank’s Privacy 
Policy.

Reply via email to