AWS Lambda SQS Publisher Consumer was developed with these technologies:
This project is a serverless application using AWS Lambda and SQS to study and implement a simple publisher-consumer architecture. The publisher sends messages to an SQS queue, and the consumer processes the messages from the queue. It showcases how to implement scalable and decoupled systems using AWS services.
To ensure resilience, a Dead Letter Queue (DLQ) is used to capture and manage failed message deliveries, providing better error handling and recovery.
The solution is implemented using the Serverless Framework for easy deployment and management of resources in the cloud. The goal is study best practices in serverless architecture, messaging systems, asynchronous processing, and robust error management.
Architecture preview:
Follow these steps to set up the project with the Serverless Framework:
# Clone this repo
$ git clone [email protected]:LucasPereiraMiranda/aws-lambda-sqs-publisher-consumer.git
# Navigate to the project directory
$ cd aws-lambda-sqs-publisher-consumer
# Use Node 22 with .nvmrc reference
$ nvm use
# Install dependencies
$ npm install
# Install Serverless Framework globally
$ npm install -g serverless
# Deploy the serverless services to AWS after define your credentials with aws cli
$ serverless deploy