Open serg06 opened 1 year ago
It should still work with direct Lambda URLs, no?
Might work with Lambda function URLs, but...
beside that I don't know if the fastify inject function is able to handle chunked responses in a way to pass them to the awslambda.streamifyResponse π€·ββοΈ Maybe @mcollina can confirm?
Given the current limitations I don't see this as such a big deal. It will definitely help Vercel.
I think it's possible to make a few modifications to inject to support this. However I don't have time to work on them right now.
thank you for the info
Does this library support the lambda streaming response yet? That's the only main blocker to use it.
The Fastify inject function (and maybe also light-my-request), needs to be modified first.
Any native support for the streaming now?
Prerequisites
π Feature Proposal
AWS just released the ability to stream a Lambda function's response: https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/
It would be great if this framework supported it.
It requires wrapping the handler in
streamifyResponse()
.Motivation
This is an extremely useful feature which greatly decreases TTFB.
Example