In order

Queue 05

Choose

Users send 1,000 events/s. Eight consumers process events in parallel, and each event needs 2 ms of CPU. The events of each user must complete in the order sent. Keep queue lag below 5 s. Choose the partition plan.

Goals

Not tested yet

Events that arrived in the wrong order.How long a message waits before a worker takes it.What the servers and services cost each month.
Choose a design
Spread events over 8 partitions at random
Put all events in one partition
Keep each user in one of 8 partitions