achimoraites / AWS-BATCH-SQS

This app is designed to illustrate the usage of Serveless Framework to create and deploy in AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How are books put in db?

ioanniswd opened this issue · comments

How is Lambda queueProcessor triggered? And how often is it triggered?

the queue triggers the function.
assuming the batchSize is set to 5 then it's triggered every 5 seconds and receives 5 items

That works. Could use batchWrite of db client to put all items in one request, which better than 5 distinct put requests one after the other

feature has been implemented