part 0 · sources checked 2026-11-20
economics: cost per request, cost per success, build or buy
This module shows what one request costs, what one success costs, and how to make a build-or-buy decision with stated assumptions.
purpose
You must know what a scraping job costs before you can compare two offers or set a price. One request and one success have two different costs, and a set of inputs controls each cost.
Some numbers in the sources are only estimates, and a precise figure for each 1,000 requests is often false precision. After the module, you can build a cost model, give each input its status, and test a guard that stops spend before it occurs.
objectives
- Calculate the cost of one attempt from the proxy bytes, the solver calls, the compute time, and the storage.
- Calculate the cost per success from the unit cost and a lower bound of the success rate.
- Calculate the share of each cost term from your own rates and your own counts. Explain why the order of the terms changes with the page weight and the challenge rate.
- Identify an estimate in a cost model, and state the measurement to use in place of it.
- Explain the difference between break-even and a margin floor, with a worked example.
- Compare a one factor at a time sweep and a full factorial sweep by their cost.
- Make a build or buy decision for one component of the stack, and state its assumptions.
- Build a counter for the cost of a run, and cost guards, in a lab. Measure the cost of a defense lever for each side.
lessons
5 of 9 published
a dim title is not yet published
- L01 the cost of one request
- L02 bytes for each page: how to measure them (not yet published)
- L03 cost per success (not yet published)
- L04 estimates, gaps, and false precision
- L05 margin, price, and the cost of measurement
- L06 fixed costs, guards, and build or buy
- L07 instrument the cost of a run in a lab (not yet published)
- L08 build cost guards and budget gates
- L09 raise the cost of the operator without a block (not yet published)