The Data Collection Handbook · Part IV. Running It at Scale

Chapter 13. Operating at Scale

In progress: this is the chapter plan. The full chapter, its charts, and its runnable experiment publish on this page.

What this chapter answers

One collector is a script. Fifty collectors serving paying customers is an operations problem. This chapter covers the fleet disciplines: queues that keep one slow source from stalling everyone, concurrency treated as a deliberate promise to each source, stuck-work recovery, and incident discipline that turns outages into rules.

What you will learn

In this chapter

The experiment

The question: With realistic bursty job arrivals, what is the smallest worker fleet that keeps 95 percent of jobs starting within the promised wait time, and how wrong is the answer if you assume smooth arrivals?

A queueing model as the baseline intuition, then a discrete-event simulation with bursty arrivals. The code sweeps worker counts, measures typical and worst-case waits and fleet cost, and compares the bursty answer against the smooth-arrivals prediction. The data and code ship with the chapter, sized to run offline on a laptop with one command.

My hypothesis is that burstiness, not average load, sets the fleet size, and that the smooth-arrivals model undersizes the fleet badly at exactly the promise customers feel: the worst-case wait.

← Chapter 12. Delivery You Can Trust Chapter 14. How to Buy Data Well →

Get new chapters by email as they publish.