TLDR Web Dev · ARTICLES & TUTORIALS

PARALLEL AND RECURSIVE ROUTE RENDERING

twofoldframework.com8 min read

Summary from the TLDR Web Dev newsletter

RSC routers use a unique approach to route rendering, performing it in parallel on the server and then recursively stitching the results together on the client to avoid waterfalls. They render a list of components in parallel, each potentially with a placeholder, and then serialize the output into a stream. On the client, a recursive component called `StackReader` uses the `Placeholder` component to traverse a stack-like data structure created from the stream, reassembling the nested component tree.