ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား · CLF-C02 အပေါ် ဆက်လေ့လာရန်

EC2, Lambda and Fargate cost

Compare compute by utilization: busy and steady favors servers, idle and bursty favors serverless.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Cloud Practitioner မှ သင်သိပြီးသားများ

  • EC2 gives you servers to manage.
  • Fargate runs containers without servers.
  • Lambda runs functions, billed per run.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • EC2

    Cheaper when
    Busy and steady
    Watch out
    Idle capacity bills
  • Fargate

    Cheaper when
    No servers, moderate use
    Watch out
    Pay for requested size
  • Lambda

    Cheaper when
    Bursty or rare
    Watch out
    Constant load adds up
Which compute is cheaper for which load.
  • CloudFront Functions

    Runs
    Short JavaScript
    Saves
    Lowest cost per run
  • Lambda@Edge

    Runs
    Heavier code
    Saves
    Origin trips
  • Outposts

    Runs
    AWS in your site
    Saves
    Transfer and latency
Edge options that cut transfer.

ဘာလဲ

Lambda bills per request and per GB-second (memory times run time). It costs nothing while idle, so it wins for spiky, event-driven or low-volume work. A function that runs all day at high volume can cost more than a small always-on instance. Memory also sets CPU, so more memory can finish sooner and cost the same or less: test a few sizes. Functions on Graviton cost about 20% less per GB-second.

ဘာလဲ

Fargate bills vCPU and memory per second while a task runs. You pay for what you request, not what you use, so size tasks well. Fargate Spot gives up to 70% off for interruptible tasks. Containers on EC2 (Amazon ECS or Amazon EKS) can pack many containers on one busy instance. That is cheapest at high, steady use, but you manage the servers and pay for empty space. Microservices help utilization, because each service scales alone instead of scaling a whole monolith. Compute Savings Plans cover EC2, Fargate and Lambda.

ဘာလဲ

Edge processing can cut transfer and origin load. CloudFront Functions run very short JavaScript on viewer requests at the lowest cost. Lambda@Edge runs heavier code and can also run on origin requests. AWS Outposts processes data next to its source, which cuts transfer and latency, but you pay for the rack.

မှတ်ထားရန်

  • Bursty or rare: Lambda. Steady and busy: EC2 or Fargate with a commitment.
  • Lambda cost = requests + GB-seconds. Test memory sizes. Arm costs less.
  • Fargate: you pay for requested vCPU and memory. Fargate Spot is up to 70% off.
  • Compute Savings Plans cover EC2, Fargate and Lambda.

မှတ်ထားရန်

  • Containers on a busy EC2 fleet can beat Fargate at high steady use.
  • Edge: CloudFront Functions for light work, Lambda@Edge for heavier, Outposts for local processing.

စာမေးပွဲမှာ

  • “Runs a few times a day, pay nothing when idle” points to Lambda.
  • “Containers, no servers to manage, interruptible” points to Fargate Spot.
  • “Runs 24/7 at high utilization, lowest cost” points to EC2 with Savings Plans or Reserved Instances.
  • “Simple header rewrite at the edge, lowest cost” points to CloudFront Functions.