commitlog
commitlog copied to clipboard
Multi reader writer
Have you thought about multiple writer support?
Multiple readers (as in multiple threads) could be fairly straightforward to support.
Multiple writers (as in threads) would be tricky. You could get away with having multiple segment (one per thread)s and reading from each on read... but that also gets messy. Batching is usually the best way to handle concurrent appends. I've implemented this in my other project w/ futures support (https://github.com/zowens/chain-replication/blob/master/log-server/asynclog/mod.rs)
Okii I think that the batching approach is a good one. I will try and add multi reader support into this crate