DEV Community


Discussion on: AWS Lambda SQS events with Serverless Framework

jsiesquen profile image
Juan Siesquen

It means that I can publish (sender.js) messages from a lambda, but I can not read (receive.js) the queue from another lambda? In summary, what would the new flow be?

Thread Thread
piczmar_0 profile image
Marcin Piczkowski Author • Edited

In receive.js you would need to use aws sqs API to fetch messages from your fifo queue. You would have to run receive.js periodically, e.g. schedule it as a cron job (see here), because it won't be triggered by new messages in the queue.