π‘ Consumption-Based & Pay-As-You-Go Pricing
In the old days of business software, companies had to purchase expensive lifetime software licenses and long-term contracts. If you bought 500 licenses and only 20 employees used them, you still paid for all 500!
The cloud changed the world forever by introducing the Consumption-Based Pricing Model.
π° The Real-World Analogy: The Utility Meterβ
Think about how your home pays for tap water and electricity:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β πΏ THE WATER TAP ANALOGY β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1. When the tap is closed: $0.00 / minute β
β 2. When you wash your hands: You pay for 1 liter of water β
β 3. When you fill a swimming pool: You pay for 5,000 liters β
β 4. When you leave on vacation: Meter stops spinning! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
In the cloud, you never sign a lease saying you must keep 10 servers running for 3 years (unless you specifically want bulk discounts). You turn on a server, run it for 2 hours, turn it off, and pay for exactly 2 hours!
β±οΈ Granular Billing: Down to the Millisecond!β
Cloud providers measure your consumption across four main dimensions:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π 4 METRICS ON YOUR CLOUD BILL β
ββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β π§ Compute β β π¦ Storage β β π Network β
β (Seconds or β β (GB per monthβ β (Data Out to β
β Milliseconds)β β stored) β β the Internet)β
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
- Compute Time: Billed per-second or per-millisecond while your Virtual Machine or Serverless Function is active.
- Storage Volume: Billed per Gigabyte (GB) per month (e.g., $0.02 per GB per month on Amazon S3).
- Network Egress (Data Transfer Out): Transferring data into the cloud is usually free; sending data out to the public internet costs a few pennies per GB.
- Operations / API Requests: Billed per 10,000 or 1,000,000 read/write database queries.
π° Three Ways to Buy Cloud Computeβ
To save even more money, cloud providers offer three main purchasing tiers:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π·οΈ COMPUTE PRICING TIERS β
ββββββββββββββββββββββ¬βββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ€
β 1. On-Demand β 2. Reserved / β 3. Spot Instances β
β β Savings Plans β (Flash Sale Discount) β
ββββββββββββββββββββββΌβββββββββββββββββββββΌβββββββββββββββββββββββββββββββ€
β β’ Maximum freedom β β’ 1 to 3-year β β’ Up to 90% discount β
β β’ Zero commitment β commitment β β’ Cloud provider can reclaim β
β β’ Normal list priceβ β’ Save 40% - 72% β the server on 2-min notice β
β β’ Great for testingβ β’ Great for steady β β’ Great for video rendering β
β and new projects β production apps β and AI training batch jobs β
ββββββββββββββββββββββ΄βββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ
:::tip π― Beginner Pro-Tip When doing tutorials and homework projects:
- Always choose Free Tier eligible VM shapes (like
t2.microon AWS orB1son Azure). - Stop or Delete your resources when you finish studying so your bill stays at $0.00! :::