Skip to content

The Hidden Cost of `return new Response()`

Avatar of Mathias Arlaud Mathias Arlaud

Most Symfony applications buffer everything: database rows, serialized objects, entire JSON payloads, and only then send a response.
It works... until scale hits. Memory spikes, slow time-to-first-byte, crashing exports.

What if the real problem isn't performance, but buffering?

In this talk, we'll redesign the data flow of a Symfony app: from StreamedResponse and incremental JSON encoding to iterable data sources and Server-Sent Events.

You'll see how to emit data progressively, power live updates and long-running exports, and keep memory usage flat using tools Symfony already provides.

Stop building responses. Start streaming them!

Delivered in English

Date/time to be announced