losfair / mvsqlite

Distributed, MVCC SQLite that runs on FoundationDB.
https://github.com/losfair/mvsqlite/wiki
Apache License 2.0
1.35k stars 38 forks source link

What are the benefits of using an intermediate server mvstore with Foundationdb? #111

Closed harryfei closed 1 year ago

harryfei commented 1 year ago

What's the role and benefits of mvstore server?

Is it possible to make mvsqlite client side library connect to Foundation db cluster directly?

losfair commented 1 year ago

mvstore is the middleware service to ensure multi-tenant isolation and security. It exposes two ports:

The data plane API is what the client library connects to, and is safe to expose to the internet. Clients are considered untrusted and should not be able to access other tenants' data in the same cluster or break data structure invariants. These constraints are enforced by mvstore.