QuestionQ8

VerifiedDesign High-Performing Architectures

A company is designing an application. The application uses an AWS Lambda function to receive information through Amazon API Gateway and to store the information in an Amazon Aurora PostgreSQL database.

During the proof-of-concept stage, the company must increase the Lambda quotas significantly to handle the high volumes of data that need to be loaded into the database.

A solutions architect must recommend a new design to improve scalability and minimize the configuration effort.

Which solution will meet these requirements?

Explanation

An Amazon SQS queue between two Lambda functions provides asynchronous decoupling and buffering, which is the standard AWS pattern for absorbing traffic spikes and letting the database-loading function process messages at a manageable rate. AWS documents SQS as a service for decoupling and scaling distributed and serverless applications, and Lambda’s event-driven architecture guidance describes SQS as an elastic buffer that helps handle increased traffic. Lambda can also poll SQS in batches before invocation, which improves ingest scalability for database writes. SNS is better suited to push-based pub/sub fanout, not workload buffering for controlled downstream processing, and the EC2/Tomcat or DynamoDB/DAX options require unnecessary redesign or added management.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!