I decided to go with sled crate. This is the most popular embedded crate I could find, it was also considered as part of the DB spike.
One of the downside for sled is that it is still alpha. It is now considered as beta. As it has not yet reached 1.0 we might want to have non-regression test on the binary format to ensure that we do not upgrade sled to a non backward compatible version and corrupt our db by mistake.
Please note that as this stage I only cater for events and cannnot load a full swap. Let's merge as is and do the full swap save/load in a new PR.
@luckysori can you point where you are using the load full swap feature to recover a swap so I know what API I need to provide?
Ready to merge
I decided to go with
sled
crate. This is the most popular embedded crate I could find, it was also considered as part of the DB spike.One of the downside for sled is that it is still
alpha
. It is now considered asbeta
. As it has not yet reached1.0
we might want to have non-regression test on the binary format to ensure that we do not upgrade sled to a non backward compatible version and corrupt our db by mistake.Please note that as this stage I only cater for events and cannnot load a
full
swap. Let's merge as is and do thefull swap save/load
in a new PR.@luckysori can you point where you are using the
load full swap
feature to recover a swap so I know what API I need to provide?