A standalone piece of code that runs in a shared infrastructure You are only responsible for your code – the environment is outside your control No control over compute resources used You specify the amount of memory you want assigned to your function
Benefits No servers to manage Code scales to your requirements Can execute many times in parallel Only pay for execution time Tracked down to nearest 100ms Isolation of functionality
Triggers Other AWS services S3 Dynamo DB Kinesis SNS Cloudwatch External requests Via AWS API Gateway E.g. triggered from website Scheduled Proactive or reactive
Example: Low memory, High CPU task Task: In local testing, uses <50mb of memory https://serverless.zone/my-accidental-3-5x-speed-increase-of-aws-lambda-functions-6d95351197f3#.q18h6eg9k
Response Time Under Load Azure Functions Google Cloud AWS Lambda http://cloudacademy.com/blog/microsoft-azure-functions-vs-google-cloud-functions-fight-for-serverless-cloud-domination-continues/