When to Use Lambda
Explore the ideal use cases for AWS Lambda, including handling dynamic web requests, parallelizable tasks, and high availability functions. Understand when Lambda is suitable and recognize scenarios where dedicated infrastructure is more appropriate. This lesson helps you apply AWS Lambda effectively in real-world applications.
When to use Lambda #
Maximising throughput #
Lambda is great for use cases where throughput is critical and the tasks parallelise nicely. Typical web requests for dynamic content, involving access to a back-end database, or some user data manipulation usually fall into this category. Automatic email replies or chatbots are also a nice example. Any single request taking a few hundred milliseconds more than average won’t be noticeable to typical users and Lambda will ensure that everyone gets served relatively quickly regardless of traffic spikes.
Splittable longer-running tasks #
Longer on-demand computational tasks that can execute in less than 15 minutes, or could be split into independent segments that take less ...