Atlassian

Improving performance through better architecture

Jun 23, 2020Rohan Deshpande
Improving performance through better architecture
SummaryAI, from the source post

This post details the creation and adoption of a new 'react-resource-router' for Jira Cloud, designed to address performance issues and compatibility problems with React Router, particularly in server-side rendered (SSR) single-page applications. The new router couples data fetching with route matching, utilizing a static route configuration that includes a `resources` property for asynchronous data fetching. It leverages 'react-sweet-state' for state management and provides immediate resource execution on the client and imperative fetching on the server. The post also discusses the progressive migration strategy and the router's internal data storage and caching mechanisms.

More from the Streaming Server-Side Rendering in Confluence trail