AWS Lambda response streaming: Time-to-first-byte using write()

Lambda response stream via Function URL

Lambda functions showing how to use Lambda response streaming to improve time-to-first byte using the write() method.

This pattern deploys an AWS Lambda function showing how response streaming can improve time-to-first-bite using the write() method.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-streaming-ttfb-write-sam

Deploy

sam buildsam deploy -g --stack-name lambda-streaming-ttfb-write-sam


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Julian Wood

Julian Wood

I help developers and builders learn about and love how serverless technologies can transform the way they build and run applications.

Follow on LinkedIn