How to proxy large GZIP streams with FastAPI on AWS Lambda (Mangum) without decompression?
Summary The goal is to create a proxy service using FastAPI deployed on AWS Lambda that can fetch a large GZIP-compressed response from an upstream API and stream it directly to the client without decompressing the data. The current implementation using StreamingResponse and passing the upstream headers directly is causing 502 Bad Gateway errors due … Read more