Skip to content
About
Main content
Resources & Cost

Cost Mechanics

What is metered, and what is the smallest increment you are charged for?

Who this mechanism is for: a developer who writes code, calls cloud APIs and knows basic SQL, but has never studied how cloud vendors price storage, compute and network, or why a bill can be several times larger than a forecast made from the price list. You do not need any database or finance knowledge. Every technical term is explained the first time it appears, and again in the glossary at the end.

The story we will follow

Tomás is a data engineer at Brightloom, a small company that sells an analytics product to retail shops. Brightloom collects sales events from thousands of shops, stores them as files in cloud (a service that keeps files, called objects, behind an HTTP interface), and answers dashboard questions with a query engine that reads those files. A manager, Priya, owns the budget. She forecast $12,000 of cloud spend for the first full month of production. Every number in her forecast came straight from the vendor's price list.

The invoice arrives on day 31. It says $41,000. Nothing crashed, no alarm fired, and every rate on the invoice matches the price list.

During this mechanism Tomás will meet five problems, one at the start of each of the first five parts. Each problem looks like a bug. Each one is actually a consequence of how a price is built: what is metered, in what increments, and who sees the number. At the end of each article, we go back and solve his problem. What lasts asks what survives when the vendor changes the price list.

The main idea of this mechanism:

How this mechanism is organized

After that: a summary, hands-on labs, interview questions and a glossary.

One request: do not skip the arithmetic. Prices change every year. The shape of each calculation (a ratio, a , an exponent) is the content you will reuse.

What do I do, and what does each option cost?

Can I see it myself?

Can I reason about it under questioning?

Trade-offs

The tensions this mechanism takes a position on. Each recurs across mechanisms.

Show all 7 trade-offs
Recurring principles

Ideas this mechanism meets that keep coming back, mechanism after mechanism.

Show all 12 principles