← Quit0 / 0 correct
Which data structure is best for scheduling timers with frequent inserts and cancellations at large scale (e.g. millions of connection timeouts)?
wheel: 60 slots, tick = 1s slot 0 → [t1, t9] slot 1 → [] slot 2 → [t4] ... cursor advances each tick