3 ms·
This sounds interesting. I'm light on details on how CouchDB and its sync works, but how do you deal with data validation/data conflict? Or maybe malicious acto
by raihansaputra 8y ago
This sounds interesting. I'm light on details on how CouchDB and its sync works, but how do you deal with data validation/data conflict? Or maybe malicious actors tampering your data? Or is it a closed app that already have those dealt with in the spec? It would be awesome if you can share more about the project.
- morpheuskafka 8y agoI'll email you a copy of the whitepaper once it is finished. The famous quote is, "CouchDB is bad at everything, except syncing." It has a built in revision system that will create two conflicting revisions on both ends, and allow your code to implement the business logic to determine the one true revision. This could be a prompt, or a rule based on the data (ex newer timestamp winds), or even an average of various data fields to create a whole new field. http://guide.couchdb.org/draft/conflicts.html http://guide.couchdb.org/draft/conflicts.html
- raihansaputra 8y agoWow, the revision system is really interesting. Makes sense why you used it that way. Thanks for the link! Am excited to wait for the whitepaper.