Beyond REST: Why State Synchronization is the Future of Web Apps
2025-05-15
Building web apps with React, Typescript, and a Rust/Axum REST backend, the author encountered significant challenges with REST's state transfer approach for what are essentially state synchronization problems. Using a simple text input example, the article highlights issues like race conditions from concurrent requests, inaccurate loading indicators, and inconsistencies across multiple app instances. The author argues for a shift towards state synchronization protocols, such as those based on CRDTs, to improve efficiency and eliminate common REST-related bugs.
Development
State Synchronization