Zero sync
Client-Side Prediction and Server Reconciliation
About
- Put Zero in front of your DB and you web server
Zero Query caching
A query is destroyed for example by a React component that uses useQuery()
deregistering. TTL defines how long that query is still synched for. You want it to keep synching in case the user returns to a route. But queries are not free: they incur a database cost. You need to keep a balance for how long to cache a query.
Zero data consistency
When allowing a sort, you should prefetch the first 100 items of every sort. Otherwise, the order would shuffle around once the complete data is fetched from the server.