0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · บทเรียน

อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย

ลดค่าใช้จ่ายด้านการประมวลผลอย่างมากด้วยการใช้ Reserved Instances และ Savings Plans สำหรับงานที่มีรูปแบบการใช้งานคาดการณ์ได้

อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย เป็นบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Smart AWS Cost Saving

AWS offers incredible flexibility, but costs can add up quickly. Learning to optimize your spending is a key skill for any backend developer.

In this lesson, we'll explore two powerful ways to reduce your AWS compute bill: Reserved Instances (RIs) and Savings Plans.

Meet Reserved Instances (RIs)

Reserved Instances (RIs) allow you to commit to using EC2 instances for a 1-year or 3-year term. In return, AWS gives you a significant discount compared to on-demand pricing.

  • Think of it like a long-term rental agreement for a virtual server.
  • You pay a fixed amount upfront or monthly for the commitment.
  • RIs are great for stable, predictable workloads that run continuously.

How RIs Work

When you purchase an RI, you commit to a specific instance family (e.g., m5), operating system (e.g., Linux), and region.

  • Commitment: You choose a 1-year or 3-year term.
  • Payment Options: You can pay No Upfront, Partial Upfront, or All Upfront. More upfront payment usually means a larger discount.
  • Discount: RIs can offer up to 75% off on-demand prices, making them a very effective cost-saving tool.

Standard vs. Convertible RIs

There are two main types of EC2 Reserved Instances, each offering different levels of flexibility:

  • Standard RIs: Offer the highest discount but are less flexible. You commit to a specific instance family, type (e.g., m5.large), and OS.
  • Convertible RIs: Offer a slightly lower discount but allow you to change the instance family, OS, or tenancy during the term. This provides more flexibility as your application needs evolve.

RI Scopes: Regional vs. Zonal

RIs can also have different scopes, affecting where your discount applies:

  • Regional RIs: Apply to any instance within the specified region, regardless of Availability Zone (AZ). They automatically apply to matching instances. This is generally preferred for flexibility.
  • Zonal RIs (Specific AZ): Reserve capacity in a specific Availability Zone. This guarantees capacity but is less flexible if your workload needs to move between AZs.

Introducing Savings Plans

Savings Plans are a newer, more flexible pricing model introduced by AWS that offers similar significant discounts to RIs.

  • Instead of committing to specific instances, you commit to spending a certain amount per hour (e.g., $10/hour) on compute services.
  • This hourly commitment applies to a broader range of services, including EC2, Fargate, and Lambda.

How Savings Plans Work

With Savings Plans, you commit to a consistent hourly spend for a 1-year or 3-year term, similar to RIs.

  • Hourly Commitment: You agree to spend, for example, $5 per hour for 3 years.
  • Automatic Coverage: This commitment automatically applies to your usage of eligible compute services. Any usage up to your committed amount is charged at the discounted Savings Plan rate.
  • It's like a 'discount coupon' that automatically applies across various compute services.

EC2 vs. Compute Savings Plans

There are two primary types of Savings Plans, each with different levels of flexibility and coverage:

  • EC2 Instance Savings Plans: Offer high discounts (up to 72%) and commit you to a specific instance family in a region (e.g., m5 instances in us-east-1). They are flexible with instance size, OS, and tenancy within that family.
  • Compute Savings Plans: Provide maximum flexibility (up to 66% discount). They apply to *any* EC2 instance family, region, size, OS, and also cover Fargate and Lambda usage. Ideal for dynamic workloads.

RI vs. Savings Plan: Compare

Both RIs and Savings Plans save money, but understanding their differences is key:

  • Flexibility: Savings Plans are generally more flexible, especially Compute Savings Plans, covering more services and allowing instance changes. RIs are more rigid unless Convertible.
  • Coverage: RIs cover EC2 only. Savings Plans can cover EC2, Fargate, and Lambda.
  • Management: Savings Plans automatically apply to eligible usage, simplifying management. RIs might require more active management if your usage patterns change.
  • Discount: RIs can sometimes offer slightly higher discounts for very specific, rigid commitments.

When to Use Which?

Choosing between RIs and Savings Plans depends on your specific needs:

  • Highly Predictable EC2: If you have stable, long-running EC2 instances with no expected changes, Standard RIs might offer the absolute best discount.
  • Flexible EC2 or Mixed Compute: For dynamic EC2 needs, or if you also use Fargate/Lambda, Compute Savings Plans are usually the best choice for maximum flexibility and ease of use.
  • Specific Instance Family Flexibility: EC2 Instance Savings Plans provide a middle ground, offering good discounts with more flexibility than Standard RIs within an instance family.

Quick Check: Cost Savings

You manage a backend application running on EC2 instances. You expect it to run continuously for the next three years, but you anticipate needing to upgrade instance sizes within the same family occasionally. You also use AWS Lambda for some serverless functions.

Which AWS cost-saving option would be the most suitable for your scenario, balancing cost savings with flexibility across your compute services?

Recap: RIs & Savings Plans

We've explored how Reserved Instances (RIs) and Savings Plans are crucial for reducing your AWS compute costs.

  • RIs offer significant discounts for committed EC2 usage.
  • Savings Plans provide more flexible discounts across EC2, Fargate, and Lambda based on an hourly spend commitment.
  • Choosing the right option depends on your workload's predictability, its services used, and your desired flexibility.

By leveraging these strategies, you can significantly optimize your AWS spending!

คำถามที่พบบ่อย

บทเรียน “อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส AWS for Backend Developers (EC2, S3, RDS, Lambda) มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย”

ลดค่าใช้จ่ายด้านการประมวลผลอย่างมากด้วยการใช้ Reserved Instances และ Savings Plans สำหรับงานที่มีรูปแบบการใช้งานคาดการณ์ได้ คุณปฏิบัติ AWS for Backend Developers (EC2, S3, RDS, Lambda) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน AWS for Backend Developers (EC2, S3, RDS, Lambda) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) นี้ได้ไหม

ได้ บทเรียน AWS for Backend Developers (EC2, S3, RDS, Lambda) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. Cost Explorer และงบประมาณของ AWS
  2. อินสแตนซ์แบบจองและแผนประหยัดค่าใช้จ่าย
  3. ภาพรวม Well-Architected Framework
  4. กลยุทธ์การติดแท็กและการจัดสรรค่าใช้จ่าย
← กลับไปที่ AWS for Backend Developers (EC2, S3, RDS, Lambda)