tidwall / summitdb

In-memory NoSQL database with ACID transactions, Raft consensus, and Redis API
Other
1.41k stars 76 forks source link

Q: SummitDB as embedded DB? #30

Open rmasci opened 4 years ago

rmasci commented 4 years ago

I have an application that requires the use of a database, and Summit is an awesome DB -- just one binary to deploy with my application, but I'm wondering if I can go another step down and have that db be embedded and not run as a standalone application.Do you have any examples of how to embed it instead of running it as a standalone server. It would also be nice if it could take advantage of cmux so I don't have my application listening on two ports. Thanks!!

tidwall commented 4 years ago

SummitDB is designed to run as an application. There's nothing built-in that supports embedding.