A company is migrating a large-scale, stateful application to AWS. The application maintains session state in memory on the current on-premises servers. The company needs a solution that preserves session state during migration and minimizes latency for users worldwide. Which strategy should the company use?
Trap 1: Use Amazon Route 53 weighted routing to shift traffic to new EC2…
S3 is not designed for low-latency session state; Route 53 alone doesn't share state between on-prem and AWS.
Trap 2: Use AWS CloudFront to cache static content, and use Amazon DynamoDB…
CloudFront is for content delivery, not traffic shifting for dynamic stateful apps.
Trap 3: Use AWS Global Accelerator to shift traffic, and deploy AWS WAF to…
WAF is for web application firewall, not session state management.
- A
Use AWS Global Accelerator to gradually shift traffic, and use Amazon ElastiCache for Redis to centralize session state
Global Accelerator provides anycast IP and traffic shifting; ElastiCache provides low-latency state sharing.
- B
Use Amazon Route 53 weighted routing to shift traffic to new EC2 instances, and store session state in Amazon S3
Why it fails: S3 is not designed for low-latency session state; Route 53 alone doesn't share state between on-prem and AWS.
- C
Use AWS CloudFront to cache static content, and use Amazon DynamoDB for session state
Why it fails: CloudFront is for content delivery, not traffic shifting for dynamic stateful apps.
- D
Use AWS Global Accelerator to shift traffic, and deploy AWS WAF to protect the application
Why it fails: WAF is for web application firewall, not session state management.