How it works · 27 of 38 Core
How does cloud pricing work: on-demand, reserved, spot and egress?
On-demand, reserved, spot and egress
Cloud cost: A cloud bill comes from how each server is bought and from data that leaves: on-demand is full price for what runs; reserved is cheaper but paid every hour for one or three years; spot is cheapest but can be taken back with two minutes' warning; and data going out to the internet is billed per gigabyte while data coming in is free.
Loading the animation…
Say it like this On-demand is full price for what runs, reserved is cheap but paid whether you use it or not, spot is cheapest but can be taken back with two minutes' warning, and data leaving the cloud is billed per gigabyte; match each workload to its plan, and watch the data that leaves.
Under the hood — for builders
- Worked example: the scene's bill
- At an example $0.10 per server-hour, the best mix costs $126 a month; all on-demand, $360.
- The discounts, as AWS states them
- Savings Plan: commit to steady use for 1 or 3 years. Spot: spare capacity AWS can take back.
- Spot's catch
- Two minutes' warning before AWS takes it back. Use it only for jobs that can stop and restart.
- Data in is free; data out is not
- Egress (data leaving) is billed per GB, at rates that vary by region: check the EC2 pricing page.
- Reserve the floor only
- Commit to what runs every hour. Anything part-time stays on-demand or spot.
- Measure it
- Tag every resource with an owner, then read the bill by tag every month.
- Watch out
- Idle disks, old snapshots and chatty cross-zone traffic add up without anyone noticing.
- Sources
- AWS: "Compute Savings Plans pricing" · "Amazon EC2 Spot Instances" · EC2 User Guide, "Spot Instance interruption notices" · "Amazon EC2 On-Demand pricing" · Architecture Blog, "Overview of Data Transfer Costs for Common Architectures" (30 Jun 2021) (read November 2026).
What happens in the cloud cost animation, step by step?
- Three workloads, each a strip of 24 hours: a loan app that never stops, nightly reports, and a fraud-model retrain. On-demand means full price for each hour a server runs. Here, at an example $0.10 a server-hour: $360 a month.
- Reserved: promise a steady amount of use for one or three years and the price drops by up to 72% (AWS). The loan app runs every hour anyway, so the promise costs nothing extra.
- Spot: spare capacity at up to 90% off, but AWS can take it back with a two-minute warning. The retrain can pause, save its place and carry on in a later hour.
- Your turn: tap each workload's plan to change it, and watch the bill and the strips. Which plan fits which job?
- Then the line most teams miss. Data coming into the cloud is free; data going out to the internet is charged per gigabyte. Send a partner 5 TB a month at about $0.09 a GB and that's $450: more than all the servers.
- The cheapest gigabyte is the one you never send. What if the computing happened where the data is made, and only the answer travelled? Next: edge computing.
What everyday example explains cloud cost?
Paying for rooms. Walk in and pay the nightly rate (on-demand); sign a year's lease and pay less, even on nights you're away (reserved); take a standby room at a fraction of the price, knowing the hotel can move you out at short notice (spot); and pay a fee for every box you carry out, while deliveries in are free (egress).
Why should a team care about cloud cost?
For each workload, decide how it is bought: reserve only the floor that runs every hour, put work that can pause on spot, leave the rest on-demand; and before you design anything that ships data out of the cloud or between regions, price the egress first.