SpinTheMic
Pro

Interview practice question

Keeping order while processing in parallel

System Design · Messaging and Queues · Intermediate

You need to process 50,000 events per second, but events for the same account must be processed in order. How do you get both?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Partition by account ID.
  • Many partitions for parallelism.
  • One consumer thread per partition.
  • Within consumer, parallelise across keys.
  • Never across same key.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics