title: Redis Stream - Order Guarantee of the events
body: <p>I have used Kafka. In Kafka, order of the event is guaranteed by using id. Do we have anything similar in Redis? If I have order-events stream and multiple consumers in a consumer group, all the events related to one particular order should be processed sequentially. </p>
  
  <hr>
  
  <p>Event - A message / Notification /  anything that happened which needs to be announced. Like order created event, order cancelled event. </p>
  
  <hr>
  
  <p>To be more clear,</p>
  
  <p>Lets assume <strong>user1</strong> orders a product called <strong>ABC1</strong> via order-service. This order-service publishes an <code>purchase-order-related</code> stram. The user1 modifies/updates the quantity of ABC1 for which the order-service publishes another event in the same stream as a second message. Here the ID of the messages could be different. 
  But is there any guarantee that these 2 messages will be processed by 1 single consumer in a consumer-group when there are multiple consumers? Because these 2 messages/events are related and should be processed sequentially. Kafka provides the guarantee by partitioning by using the order-id of the <strong>ABC1</strong> product purchase.</p>