Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoking a Lambda function every 5 seconds

My problem

I'd like to invoke an AWS Lambda function every 5 seconds, for some monitoring purposes.

According to the docs,

Rate frequencies of less than one minute are not supported.

What have I tried

STFW.

My Question

Can I autonomously invoke an AWS Lambda function every 5 seconds?

like image 679
Adam Matan Avatar asked Dec 04 '17 09:12

Adam Matan


People also ask

Can Lambda function run periodically?

You can set up a rule to run an AWS Lambda function on a schedule. This tutorial shows how to use the AWS Management Console or the AWS CLI to create the rule.

How many requests per second can Lambda handle?

Lambda uses the 3,000 available burst concurrency to create new environments to handle the additional load. 1,000 requests are throttled as there is not enough burst concurrency to handle all 5,000 requests. Transactions per second are 16,000.


1 Answers

you can use step functions and lambda for that - look at https://aws.amazon.com/blogs/architecture/a-serverless-solution-for-invoking-aws-lambda-at-a-sub-minute-frequency/

like image 173
srodriguez Avatar answered Oct 05 '22 05:10

srodriguez