I have gone through this article: When and when not to use aws lambda functions
But still need some clarifications.
What I want to understand is, Can we use AWS Lambda functions for everything, for every backend task? Because Lambda function execution time is 15 minutes and I think that's enough for any task processing.
Lambda can work with AWS services which sends events like AWS Api Gateway, S3, SNS and many more. Even, I have checked that, when web client calls any REST API written using API gateway, we can directly invoke Lambda function without raising any event.
Also, nobody wants idle servers. Everybody wants to pay as per as you go model.
So means, for every backend task, I can use Lambda function? Means, on the backend side, I can have only REST APIs, then lambda function and then Database services.
Is my understanding correct? Or there is any gap?