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

การสำรองข้อมูลและความพร้อมใช้งานสูงของ RDS

ทำความเข้าใจการสำรองข้อมูลอัตโนมัติ สแนปชอตด้วยตนเอง และการปรับใช้แบบหลาย AZ เพื่อเพิ่มความทนทานและเวลาพร้อมใช้งานของฐานข้อมูล

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

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

Keeping Your Data Safe & Ready

When running databases, two critical concerns are data loss and downtime. What if a server fails? What if you accidentally delete crucial data?

AWS RDS offers powerful features to ensure your database is both resilient against failures and recoverable from data loss. We'll explore how to achieve this with backups and high availability.

RDS Automated Backups

Automated backups are a lifesaver. RDS automatically creates and stores backups of your database instance.

  • They include a full daily snapshot and transaction logs.
  • You define a retention period (1-35 days).
  • Backups happen during a specified backup window to minimize performance impact.

These are enabled by default for new instances!

Recovering to Any Moment

Automated backups enable Point-in-Time Recovery (PITR). This means you can restore your database instance to any second within your retention period.

Imagine accidentally deleting a table at 10:30 AM. With PITR, you can restore your database to 10:29 AM, before the error occurred. This creates a brand new RDS instance with the restored data.

Creating Manual Snapshots

While automated backups are great for short-term recovery, manual snapshots offer more control and flexibility.

  • You initiate them whenever needed.
  • They are stored until you explicitly delete them.
  • Useful for long-term archiving, major schema changes, or migrating data.

They are full backups of your database instance at a specific point in time.

Restoring from a Snapshot

When you restore from either an automated or manual snapshot, RDS creates a new database instance. This new instance is independent of the original one.

You can specify the instance type, storage, and other configurations for the new instance. This process is great for testing changes or recovering a specific version of your data.

Multi-AZ for High Uptime

Multi-Availability Zone (Multi-AZ) deployments are crucial for high availability. Instead of just one database instance, RDS automatically provisions and maintains a synchronous standby replica in a different AZ.

An Availability Zone (AZ) is a physically separate, isolated location within an AWS Region. This protects against an outage in a single AZ.

Automatic Failover in Action

If your primary database instance in a Multi-AZ deployment becomes unavailable (e.g., due to an AZ outage or underlying infrastructure issue), RDS automatically performs a failover.

The standby replica is promoted to become the new primary. Your application's database endpoint automatically points to the new primary, usually within minutes, with minimal disruption.

Multi-AZ vs. Read Replicas

It's important to distinguish Multi-AZ from Read Replicas.

  • Multi-AZ: Focuses on high availability and disaster recovery. The standby replica is synchronous and not directly accessible for reads.
  • Read Replicas: Focus on performance scaling by offloading read traffic. They are asynchronous and can be in the same or different AZs/Regions.

We'll dive deeper into Read Replicas in a future lesson.

Combining Strategies for Resilience

For maximum database resilience and uptime, a common strategy is to combine these features:

  • Automated Backups: For point-in-time recovery from accidental data changes.
  • Manual Snapshots: For long-term archives or specific recovery points.
  • Multi-AZ: For high availability against AZ-wide outages.

This layered approach ensures your data is protected and always available.

Quick Check on RDS Resilience

You've learned about RDS's powerful features for backups and high availability. Let's test your understanding!

RDS Resilience Recap

Great job! In this lesson, we explored how AWS RDS helps you build resilient databases:

  • Automated Backups provide point-in-time recovery.
  • Manual Snapshots offer flexible, user-initiated backups.
  • Multi-AZ Deployments ensure high availability and automatic failover across Availability Zones.

By using these features, you can significantly enhance your database's data protection and uptime.

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

บทเรียน “การสำรองข้อมูลและความพร้อมใช้งานสูงของ RDS” ฟรีหรือไม่

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

คุณจะเรียนรู้อะไรในบทเรียน “การสำรองข้อมูลและความพร้อมใช้งานสูงของ RDS”

ทำความเข้าใจการสำรองข้อมูลอัตโนมัติ สแนปชอตด้วยตนเอง และการปรับใช้แบบหลาย AZ เพื่อเพิ่มความทนทานและเวลาพร้อมใช้งานของฐานข้อมูล คุณปฏิบัติ 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 ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน

บทเรียน “การสำรองข้อมูลและความพร้อมใช้งานสูงของ RDS” ใช้เวลานานแค่ไหน

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

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

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

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

  1. บทนำ Amazon RDS
  2. การเปิดใช้งานและเชื่อมต่อกับ RDS
  3. การสำรองข้อมูลและความพร้อมใช้งานสูงของ RDS
  4. การปรับขนาดและปรับแต่งประสิทธิภาพใน RDS
← กลับไปที่ AWS for Backend Developers (EC2, S3, RDS, Lambda)