Unexpectedly high free tier usage for Queues #1760
-
Hi All, I've been playing around with Bref quite a lot since the PHP UK conference (thanks for a fantastic talk @mnapoli !!) I've normally deployed my functions with a queue as for many of them I would like to, at some point, make use of the queue, and I had assumed as queues are charged by request, that to simply have the queue but not utilise it would be fine. I don't believe I've had more than one function running at a time, apart from today... Anyway earlier I got this email from AWS. I see that in the config I am using the I'm not getting any traffic to my functions, possibly some internet noise, and a handful of requests. Would someone be able to explain a bit more about how these queue requests tally up? Thanks, Harvey. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Harvey! This is how the SQS -> Lambda integration works. Under the hood, AWS Lambda maintains a "poller" that waits for SQS messages all the time. When it gets messages, it invokes our function. That's how, for us the users, we don't have to poll SQS. AWS does it for us basically. The downside is that that creates continuous requests to SQS, and we are "charged" for those (the free tier kicks in though). That could benefit from a mention in the Bref docs though! |
Beta Was this translation helpful? Give feedback.
Hi Harvey! This is how the SQS -> Lambda integration works. Under the hood, AWS Lambda maintains a "poller" that waits for SQS messages all the time. When it gets messages, it invokes our function.
That's how, for us the users, we don't have to poll SQS. AWS does it for us basically. The downside is that that creates continuous requests to SQS, and we are "charged" for those (the free tier kicks in though).
That could benefit from a mention in the Bref docs though!