3 ms·
Everybody is focused on literally replicating the data model and using SQL which obviously won't work. But the idea is directionally correct. Replicate the sub
by aboodman 6y ago
Everybody is focused on literally replicating the data model and using SQL which obviously won't work.
But the idea is directionally correct. Replicate the subset of data the user has access to and wants locally and work on it disconnected, then sync changes asynchronously to server. This is difficult, but necessary for fully responsive and collaborative applications.
Check out https://replicache.dev https://replicache.dev for a productization of this idea (disclosure: this is my product). We will eventually add a SQL frontend for the cached data.
- raihansaputra 6y agoI’ve seen replicache before and definitely very interested to use it. Will replicache be self-hostable in the future?
- aboodman 6y agoAs of a month or so, it's even better: Replicache has no server side component at all. It's client-side software that talks directly to your server. See: https://twitter.com/replicache/status/1359690468892626944?s=20 https://twitter.com/replicache/status/1359690468892626944?s=... for more. (We've shipped this now, but not re-announced it yet).
- raihansaputra 6y agoYeah I went through the docs and saw that now it's client-side. Very exciting!