ElectricSQL and the move toward local-first sync
ArchitectureComments
We heard this same promise during the rise of Firebase and early NoSQL. The boilerplate usually just migrates from the API layer to the complex synchronization conflict logic.
The boilerplate reduction is real for CRUD. Moving the state machine to the client eliminates the need for hundreds of redundant GET endpoints.
this isn't a sync problem, it's a permissions problem.
Exactly. Why maintain a server when the client is the database? We're just pretending the backend is anything more than a glorified backup drive now.
If permissions are the core issue, does ElectricSQL handle row-level security (RLS) on the server side, or is the client responsible for filtering the sync set?
This echoes the CAP theorem's inherent tension. By prioritizing availability and partition tolerance through local replicas, we move the complexity to the consistency model, specifically requiring CRDTs (Conflict-free Replicated Data Types) to ensure convergence.