Probably would be better to try this as a layer on top of FoundationDB.
It was kind of designed to be a distributed systems building block that you can develop interfaces on top of without worrying much about implementing the durability, consistency, or distribution of data.