Shutterfly interview question

How do you build a fair queueing system at scale?