5 ms·
Is this supposed to be run on the server? Then how does it really solve the frontend side of issues, I'm just trying to understand.
by yewenjie 3y ago
Is this supposed to be run on the server? Then how does it really solve the frontend side of issues, I'm just trying to understand.
- ranting-moth 3y agoI sometimes see interesting links on HN but when I click on them and skim through, I still have no idea what exactly it does. This is one of them.
- hk__2 3y agoIt’s not exactly clear in the article, but there is a client part: https://github.com/orbitinghail/sqlsync/blob/main/GUIDE.md https://github.com/orbitinghail/sqlsync/blob/main/GUIDE.md > Step 2: Install and configure the React library
- jokethrowaway 3y agoNot involved with the project but - this is a database which run client side and sync with a database on the server
- carlsverre 3y agoPrecisely! The same database (SQLite) is running on both the client and the server. SQLSync provides a custom storage layer to SQLite that keeps everything in sync. As changes are made locally (optimistically) they are synced into the cloud where they are eventually applied to the primary db replica. The clients subscribe to changes from the primary db and then rebase themselves to stay in sync. I really need to write up a detailed overview of how this works! Thanks for the feedback!