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

Chapter 12. Delivery You Can Trust

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

What this chapter answers

The most expensive lie in this industry is a status field that says delivered. This chapter is about the last mile: verifying at the destination storage instead of trusting your own pipeline's flags, making re-delivery always safe to repeat, and billing only what actually landed.

What you will learn

In this chapter

The experiment

The question: Under realistic failure injection, how often does a naive status field disagree with what is actually in storage, in both directions?

Ten thousand simulated deliveries to a mock object store with injected faults: network failures, crashes between the upload and the status write, and a blind retry policy. The status table is then compared against ground-truth storage listings, classifying both lie directions: says delivered but is not, and says failed but actually is. The data and code ship with the chapter, sized to run offline on a laptop with one command.

My hypothesis is that the naive design lies in both directions at material rates, and that says failed but actually delivered is the nastier direction because it triggers duplicate re-deliveries and double billing. Storage-level verification should drive both directions to zero.

← Chapter 11. Cost Engineering Chapter 13. Operating at Scale →

Get new chapters by email as they publish.