Back to problems

Design Real-Time Driver Pay Aggregation

System Design · DoorDash · Hard

A large on-demand delivery marketplace ingests a continuous stream of order lifecycle events and must keep an up-to-date, auditable daily earnings balance for every courier. The basic earnings rule is simple: add up the courier's active work time. The complication is that the platform defines certain high-demand intervals each day during which the pay rate is multiplied. If a work interval crosses the boundary of a high-demand interval, the interval must effectively be split…

Checking your access…