Amazon DynamoDB Point-in-Time Recovery (PITR)
Amazon DynamoDB Point-in-Time Recovery (PITR) allows you to restore a table to a specific point in time within the past 35 days. It provides continuous backup to protect against accidental deletions, data corruption, or unintended write operations.
1. Key Features of PITR
- Continuous Backup: Automatically backs up data every second.
- Restore Any Point in Time: Can restore to any second within the last 35 days.
- No Performance Impact: Does not affect table performance or availability.
- Full Table Restoration: Restores all table attributes, including global secondary indexes (GSIs) and local secondary indexes (LSIs).
- IAM Control: Can be enabled or disabled via IAM permissions.
- Deleted Tables Can Be Restored: Even if a table is deleted, it can be restored within the 35-day window.
Auto Scaling for DynamoDB Tables refers to the ability to automatically adjust the throughput capacity of DynamoDB tables (both read capacity units (RCUs) and write capacity units (WCUs)) to meet the workload demands. This ensures that your DynamoDB tables scale up during high-traffic periods and scale down when traffic decreases, helping to optimize costs without sacrificing performance.
Here’s how Auto Scaling works for DynamoDB tables:
How Auto Scaling Works in DynamoDB:
- Provisioned Capacity Mode:
- DynamoDB offers two capacity modes: On-demand and Provisioned.
- Auto Scaling applies to Provisioned mode, where you define the baseline read and write capacity units for your table.
- Auto Scaling Configuration:
- Auto Scaling allows you to set target utilization for the read and write capacity, which determines how much of the capacity is being used and triggers scaling actions.
- Auto Scaling adjusts the read and write capacity based on the defined parameters:
- Target Utilization: The desired utilization of capacity (for example, 70% of the provisioned capacity).
- Min/Max Capacity: The range within which DynamoDB can scale the read/write capacity (e.g., 5 to 1000 capacity units).
- Scaling Policy: You can define how quickly DynamoDB should scale (scaling thresholds and cooldown periods).