ready-made solutions that I know of include CouchBase and CouchDB.

they are both pretty much the same in regard of your requirements.

   - blobs and docs are supported natively (but better done by CouchDB for 
   JSON)
   - They both have master-master replication in real-time with default or 
   custom conflict resolution mechanisms.
   - They both persist to disk even though CouchBase caches a lot more 
   in-memory

Where they differ


   - CouchDB talks HTTP, CouchBase talks the memcached protocol
   - CouchDB uses map/reduce javascript functions to expose your data 
   whereas CouchBase has N1QL (sql-like). This doesn't matter in any of them 
   if you use this purely as key-value
   - CouchDB doesn't cache anything in memory

If you have a lot of writes, use CouchBase. There is a node driver 
developed by them.

Other solutions include etcd and zookeeper that I know less but also 
satisfy your use-case.


On Tuesday, 4 November 2014 18:39:39 UTC+1, hellboy wrote:
>
> I'm looking for file-based embedded store for Node.js with following 
> features:
>
>    1. 
>    
>    Support for master-master replication that replicates real time 
>    changes so you can easily have a cluster of node.js processes (on several 
>    servers) where you can read or write to any of them. An appropriate 
>    conflict-resolution mechanism should be thought of.
>    2. 
>    
>    Support for both JSON and binary values
>    3. 
>    
>    Non-memory-based
>    
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/4d220659-f88b-44b5-a296-ee6b2742562b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to