All Questions
Managing Long Running Tasks medium

How do you ensure VIP users get processed before free users in a single queue system?

  1. A Sort the queue every time.
  2. B Delete free users.
  3. C Ask them nicely.
  4. D Use two separate queues (High Priority and Low Priority). Workers always check the High Priority queue first.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions