Skip to content

Offline AWS Serverless implementation with Node + Lambda + SQS

License

Notifications You must be signed in to change notification settings

mrbrunelli/aws-node-sqs-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline AWS Serveless Worker

AWS Worker with Node + SQS + Lambda

Technologies

  • Serverless 2.5.x
  • Node 14.x
  • ElasticMQ latest

How execute

  1. Clone repo
git clone git@github.com:mrbrunelli/aws-node-sqs-worker.git
  1. Setup Docker
yarn docker:up
  1. Run Serverless Offline
yarn start:local

Messages and Queues

The SQS event is triggered after sending a message, with 5 seconds delay.

  1. Call listQueue lambda to check queues url
curl http://localhost:3000/local/queues
  1. Create new message. Message displays in serverless console.
curl --header "Content-Type: application/json" \
  --request POST \
  --data 'My message' \
  http://localhost:3000/local/produce