An e-commerce company is migrating its monolithic application to a microservices architecture. They want to separate their temporary shopping cart session data from their primary transactional customer database to ensure loose coupling. The new shopping cart service requires a database that automatically scales horizontally to support millions of active users with predictable, single-digit millisecond latency for simple key-value lookups. Which AWS database service is best suited for this shopping cart service?
- AAmazon RDS
- Amazon DynamoDBAnswer
- CAmazon Redshift
- DAmazon Neptune
Answer
Amazon DynamoDB is the best choice because it is a managed NoSQL database designed for single-digit millisecond latency and seamless horizontal scaling, which aligns perfectly with key-value session data in a decoupled microservices architecture.
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. For a shopping cart microservice requiring single-digit millisecond response times and automatic horizontal scaling to handle traffic spikes, DynamoDB's key-value data model is the ideal choice. It allows the microservices architecture to remain loosely coupled by offloading session state from the primary transactional relational database.
Step-by-Step Solution
Key Concept
Matching database workloads (NoSQL key-value vs relational) to AWS database services based on scaling and latency requirements.