System Design/Mobile Development
Dan Abramov·May 31, 2025·14 min readBy Gal Hagever
Distributed SystemsTestingPerformanceJavaScriptSoftware ArchitectureReactAWS
AI summary
This article explores the limitations of standard JSON transfer, where clients must wait for the complete payload before processing data. It discusses the challenges of streaming partial JSON and identifies how React Server Components use intentional loading states to enable progressive, outside-in data streaming.
Key points
- Standard JSON parsing requires the full payload, preventing client-side work until the entire server response completes.
- Naïve JSON streaming results in malformed data structures that are difficult for application logic to consume reliably.
- Effective streaming requires a programming model, such as React's Suspense, to manage incomplete data and intentional loading states.
- Progressive data streaming allows UI updates to occur as soon as partial props arrive, decoupling individual component rendering from the total response latency.