A real estate platform hosts a global portal on AWS. The portal allows users to search for property listings and view high-resolution property images. The search queries are processed by an Amazon RDS for PostgreSQL database, while the images are stored in an Amazon S3 bucket. The company wants to optimize performance for global users, minimize load on both the database and the S3 bucket, and keep costs optimized. Which combination of services should a solutions architect recommend to meet these requirements?
- Configure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, utilizing a default cache TTL of 86400 seconds. Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.Cevap
- BConfigure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, but set the Default TTL and Maximum TTL to 0 seconds on the cache behavior to ensure instant updates. Use Amazon RDS Read Replicas to handle all search queries.
- CMove the property images to an Amazon S3 Standard-Infrequent Access (S3 Standard-IA) bucket and have users download them directly. Delete the images daily when listings are updated to minimize storage charges.
- DConfigure Amazon Route 53 latency-based routing to distribute user requests directly to the application servers and database without using CloudFront or ElastiCache.
Cevap
Configure an Amazon CloudFront distribution with Amazon S3 as the origin for the images, utilizing a default cache TTL of 86400 seconds. Deploy an Amazon ElastiCache cluster to cache frequent query results from the Amazon RDS database.
Implementing Amazon CloudFront with a non-zero cache TTL caches static images at edge locations, reducing S3 request costs and user latency. Amazon ElastiCache stores the results of common read-heavy queries in memory, offloading the RDS database and accelerating responses.
Adım Adım Çözüm
Anahtar Kavram
Multi-tier caching using Amazon CloudFront and Amazon ElastiCache