I am currently using SQS(fifo) + Lambda trigger architecture. Whenever a message is issued to SQS, a Lambda function is created and processed by the internal poller.
This is perfectly normal, typical SQS + Lambda processing logic. But I want to limit the maximum number of Lambdas created per second. No matter how hundreds of thousands of messages are delivered to SQS, the Lambda internal poller rate-limits these messages to create a Lambda function, and I want to write this rate limiting logic myself.
Is it possible? If possible, I would appreciate it if you could leave any related materials! Also, if you have a better recommended architecture than SQS + Lambda, please share!