Cache hit-rate cost model calculator

Every request pays the cache lookup charge; only misses pay the origin charge.

Your inputs

Currency changes the labels, not the amounts. No exchange-rate conversion.

Expected origin requests
100,000
Origin cost (£)
200
Cache cost (£)
100
Combined cost (£)
300
Saving versus origin only (£)
1,700

Your calculation
How is this calculated?

Requests × (1−hit rate/100).

Expected misses × origin rate ÷ 1,000.

All requests × cache rate ÷ 1,000.

Add origin and cache costs.

Origin-only request cost minus combined cost.

Every request pays the cache lookup charge; only misses pay the origin charge. Supplied flat rates exclude storage, bandwidth, tax, free tiers and minimum charges. Expected miss counts may be fractional.

OpenStax: percentages and proportions ↗

Try an example

Worked example

Expected origin requests: 100,000

Inputs
  • Requests: 1000000
  • Cache hit rate (%): 90
  • Origin cost per 1,000 requests (£): 2
  • Cache lookup cost per 1,000 requests (£): 0.1

Compare inputs

Expected origin requests: 5,000

Inputs
  • Requests: 10000
  • Cache hit rate (%): 50
  • Origin cost per 1,000 requests (£): 1
  • Cache lookup cost per 1,000 requests (£): 0.2
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.