4 ms·
Right now gun has multiclient offline-first capability. If the clients go away (and the data destroyed), there's no way of loading data on the new client. WHat
by anilgulecha 10y ago
Right now gun has multiclient offline-first capability. If the clients go away (and the data destroyed), there's no way of loading data on the new client.
WHat I'm looking for is a "gun-server" with persistent storage, which can act like the persistent storage node, always ready to provide data to new clients. (Couchdb does this for pouch clients)
- marknadal 10y agoAh, yes! Thank you for clarifying. (sorry for the late reply) This actually works out of the box, sorry if if this wasn't clear. When you run a gun server ( `npm start` or see https://github.com/gundb/gun-starter-app https://github.com/gundb/gun-starter-app ), it by default saves persists data to disk. This way the gun server acts as a storage node, ready to provide the data to clients. The default options are, and extensions for: - Dump JSON to disk. - Backup to S3. - Level adapter https://github.com/PsychoLlama/gun-level https://github.com/PsychoLlama/gun-level - SQLite adapter https://github.com/gundb/sqlite https://github.com/gundb/sqlite Note, that the Level adapter is also compatible with many other storage engines. Is this what you were looking for?