-
Performance
Stream large responses instead of building them in memory
Stop buffering entire exports and large payloads in server memory; stream them to the client instead.
Free Prompt
What This Does / How This Helps
This finds endpoints that buffer entire large responses in memory and converts them to stream in batches, with proper headers, disconnect handling, and a fallback pattern for must-be-atomic exports. The build-then-send pattern works until your first customer with real data asks for an export, and then it either takes 45 seconds or kills the server process outright. On memory-capped hosting, one big export can OOM the instance and take every other user's requests down with it. Streaming keeps memory flat and starts the download immediately, and it's the difference between 'exports are slow for big accounts' and 'exports crash the app'.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).