Answer
Order is guaranteed only within a partition. Use the user id as the message key: every event with the same key goes to the same partition, so one user's events stay in order while different users are processed in parallel.
Streaming · Flashcard
Order is guaranteed only within a partition. Use the user id as the message key: every event with the same key goes to the same partition, so one user's events stay in order while different users are processed in parallel.