AlgoViz

AWS Lambda

medium 25 min

AWS Lambda runs your function when an event arrives and stops charging when it ends.

Where it shows up

The same pattern appears across everyday software.

  • Small REST back ends

    API Gateway, a function per route or group of routes, and DynamoDB. Idle at night, busy at noon.

  • File processing

    An upload to S3 starts a function that makes thumbnails or checks the file. Large spikes become more environments.

  • Stream processing

    A [Kinesis](/learn/system-design/amazon-kinesis) mapping calls the function with batches per shard, for example to flag suspicious orders.

  • Device back ends

    Messages from devices trigger functions that update a state table and send commands.

  • Workflows

    Step Functions or durable functions coordinate several steps, such as review, publish and notify.

  • Scheduled jobs

    EventBridge starts a nightly clean-up instead of a machine that waits for cron.