Open temsa opened 9 years ago
That would be a valuable contribution. Storage is the base class. Implementations override writeState, readState, writeOp, readOps. Former two methods deal with state snapshots. The latter two append ops to the log and read it, respectively. Storage is totally agnostic about CRDT/logic; it deals with plain key-value pairs. In MongoDB, we used arrays to keep the log. But (1) that was an ugly hack, (2) that code is not open source and (3) arrays are not actually necessary (key-value is OK as the order can be derived from the keys).
Do you have any plans to make the Mongo Storage driver available?
ReadMe references https://github.com/gritzko/swarm/blob/master/lib/MongoStorage.js , yet it does not exist :(
BTW an ElasticsearchStorage using official client would be great too ! I may do it by myself if I really understand either the LevelDB one or the FileSystem one