Serverless functions are designed to execute quickly and terminate. Tasks like image resizing, form validation, or log processing are perfect fits. Running these jobs on full servers would be wasteful. Serverless optimizes resource usage by allocating compute only for brief execution windows. This efficiency is a core reason for its popularity.
Short-lived tasks become cheaper and easier to manage. Infrastructure complexity is eliminated.
This encourages breaking systems into smaller, more maintainable components.
Serverless functions are optimized for short execution times.
[AWS Lambda Developer Guide, aws.amazon.com]