Open dappelt opened 6 years ago
I didn't find a good solution yet. Right now the XRP plugin is using lowdb, which just writes to a JSON file on disk. I was in the middle of trying to switch it over to using a levelup-compliant store but haven't yet.
Multilevel seems like a good option but is unfortunately out of date and not compatible with the latest levelup version.
I was also looking into whether using RocksDB (Facebook's fork of leveldb) would be an option, because it allows for multiple readers. The Node.js module unfortunately doesn't expose the read-only option right now but it should be possible to add that (see https://github.com/Level/rocksdb/issues/13#issuecomment-346389733)).
Claim writer and channel watcher run in separate processes but access the same db. Did you find a solution for accessing the db from multiple processes? From the levelup docs:
Did you check multilevel?