Yes, embedding any kind of store can work. For example, here is an in-memory KV store embedded in Raft:
https://github.com/otoolep/hraftd
This is kind of a reference use of Hashicorp's Raft.
https://github.com/otoolep/hraftd
This is kind of a reference use of Hashicorp's Raft.