Positioning and architecture · Engineering
Why one process for six everyday database roles
The case for a small all-in-one database: fewer moving parts, not a claim that one engine replaces every specialised system.
Most small projects do not start with a database architecture. They start with one application, one document store, and a growing list of “we should probably add…” decisions: search, analytics, a graph feature, metrics, a queue, and somewhere to put audit history.
Each addition is reasonable on its own. Together they create a stack that is much larger than the application. Every service needs a backup policy, an authentication model, a monitoring dashboard, an upgrade path, and someone who understands what happens when it fails at 2 a.m.
NonoDB is an attempt to remove some of that surface area for the common case. It is one Rust daemon that owns its data files, speaks HTTP/JSON, and can also expose an optional MongoDB-compatible endpoint for existing drivers.
Six roles, not six full products
The useful framing is everyday database roles, not “six complete replacements”. The difference matters.
| Role | What NonoDB covers | What it does not try to be |
|---|---|---|
| Documents | CRUD, filters, indexes, aggregation, TTL, history | Every MongoDB wire-protocol feature and cloud product |
| SQL | SELECT, INSERT, UPDATE, DELETE over one collection |
A general-purpose PostgreSQL with joins and extensions |
| Search | BM25 full-text, fuzzy matching, filters | A clustered search engine with every analyzer and aggregation |
| Vectors | Exact and approximate vector search, hybrid ranking | A dedicated vector database at very large scale |
| Graph | Traversal, shortest paths, analytics, read-only Cypher | A full Neo4j-compatible graph platform |
| Time-series | Bucketed columnar storage, retention, rollups, SQL | A mature TSDB with continuous aggregates and very high ingest |
That is still a lot of useful coverage. For a small SaaS, an internal tool, an edge box, or a prototype that may become production, it can remove four or five separate systems without pretending that the remaining specialists are unnecessary.
The real advantage is operational
Feature lists are easy to compare. The harder cost is operational: one more process to deploy, one more place where credentials live, one more backup that has never been restored, one more version upgrade that can break a client.
A single process gives you a smaller set of questions:
- Where is the data directory?
- Who can read and write it?
- When was the last successful backup, and has a restore been tested?
- Which query is slow, and which index would fix it?
- What happens when the process dies?
NonoDB does not make those questions disappear. It makes them apply to one system instead of six. The built-in GUI, CLI, metrics endpoint, backup jobs, replication, and document history all live in the same binary and use the same data directory.
Small is a design constraint
“All-in-one” can also mean “bloated”. NonoDB tries to avoid that by keeping the storage model boring: LMDB files, a single writer per database, memory-mapped reads, and a bounded set of query features.
The daemon idles at roughly 5 MB RSS with 1M documents and three indexes. That is not a claim that every workload fits in 5 MB. A full scan or parallel index build touches many pages and raises RSS temporarily. But the baseline is small enough to run next to an application on a cheap VM, a Raspberry Pi, or a developer laptop.
The same constraint applies to features. NonoDB does not implement general interactive transactions, cross-collection joins, sharding, or multi-writer replication. Those are deliberate boundaries, documented in Roadmap and limits, not missing checklist items.
When one process is the wrong choice
If you need heavy analytical SQL, very high time-series ingest, a large Elasticsearch cluster, or a graph database with write Cypher and a mature ecosystem, use the specialist. NonoDB is not trying to win those arguments.
The interesting case is the project that needs a little of several things and does not want to run six servers to get them. That is the gap NonoDB is designed for.
The comparison page and the README spell out the coverage and the gaps. The documentation starts with the practical path: create a database, insert a document, add an index, and decide whether the single-process trade-off fits your project.