API Platform, JsonStreamer and ESA
summary
Symfony adds a new JSONStreamer encoder that writes JSON parts without full normalization, so 10,000-book benchmarks show ~204ms with the Serializer vs roughly half that with streaming and memory dropping from ~16MB to ~8MB; encoders are generated once (cache-warm) and become tiny PHP functions. API Platform integrates this via a PropertyMetadataLoader to emit virtual JSON‑LD fields and warns that runtime value transformers must not hit databases. The talk also sketches ESA (Edge Side APIs) for breaking lists into progressive fetches. Symfony 7.3 experimental, API Platform 4.2 integration.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 2:00Story of the bookstore
- 4:55JSON and API Platform basics
- 9:10Memory game and out of memory
- 12:04Symfony serializer explained
- 15:19Streaming to solve memory issues
- 17:06JSON Streamer component deep dive
- 23:51JSON Streamer performance benchmarks
- 25:38API Platform with JSON Streamer
- 30:33Groups alternative with Object Mapper
- 31:38API Platform benchmarks with streaming
- 35:57Edge Side API architecture
- 37:41JSON Streamer availability and call to action
