Skip to content
loading...

re: AWS Lambda SQS events with Serverless Framework VIEW POST

TOP OF THREAD FULL DISCUSSION
re: One question more ... This workflow work for FIFO Queue also? Or exist some difference? Thanks!
 

No, it only works for standard queue, sqs triggers do not work for fifo. You are left with polling the queue yourself.

 

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?

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.

code of conduct - report abuse