Basic flow of producer and consumption of AWS SQS queues. The project consists of 2 services, one to producer and one to consume. NOTE: The consumer polls the queue continuously for messages using a long poll.
- Account to AWS
- AWS user with
AmazonSQSFullAccess
policies - Create SQS queue standard
ENV | Description |
---|---|
AWS_ACCESS_KEY_ID |
access key ID |
AWS_SECRET_KEY |
secret access key |
AWS_REGION |
SQS Region |
AWS_SQS_QUEUE_URL |
Queue url to interact |
Service | Method | Endpoint | body | Description |
---|---|---|---|---|
Service producer |
POST | http://localhost:3001/messages | {message: "Hello world"} | Create new resource |
Service consumer |
GET | http://localhost:3002/messages | Get all resources |
Developed by Diego Cortés