Use consistent-hashing with hash-rings to distribute reads and writes across multiple multilevel nodes.
NB: Work in progress. Not currently suitable for production.
Currently assumes bytewise/hex as a keyEncoding.
This module is installed via npm:
$ npm install level-cluster
Assuming some multilevel servers listening
['127.0.0.1:3000', '127.0.0.1:3001', '127.0.0.1:3002']:
var servers = '127.0.0.1:3000' '127.0.0.1:3001' '127.0.0.1:3002';var LevelCluster = ;var db = servers;// will consistently hash the write to a server based on the keydb;// will consistently hash all the writes and deletes to the right serversdb;// will retrieve the right data from the right serverdb;// will delete the right data from the right serverdb;db;// will stream the data from the different servers and create a unified stream// AND make sure it's sorted;// will distribute writes and deletes across the cluster based on the hashes of// keys