Jun's advice is exactly what the FAQ says but maybe it should be rephrased because it is true this question comes up once in a while. Your requirement is: user must receive published messages in order. All messages published to a partition will be stored in order. A consumer reading a partition will also read them in the order they arrived. The partition key is the way for the producer to pick the partition in which the messages will be stored. If you use user id as the partition key, it means -- Marc Labbe
↧