Ndb Cloud

Your own ndb, live in a minute, watched for you.

A single-tenant ndb with its own disk, token and encryption key. TLS on port 7070, a daily backup off the machine, and the charts that tell you how it runs. Add a copy in another region and your apps read local.

NDB_URL=tcp+tls://:•••@qzu-mkfs-gan.br-sp-1.ndb.clowk.in:7070

Example numbers of a made-up server. They change every second.

qzu-mkfs-gan · br-sp-1 · ndb v1.28.1
Running
Requests418 /s
Query p993.1 ms
Copy lag0.4 s
ReadsWriteslast 60 s, live

Reads and writes, last 60 s

ReadsWrites
0250500-60s-30snow
Backup 02:40 UTC · 31.9 GiBTLS valid2/2 checks
26 µsGET by _id on the unix socket
18 msp99 lag of a copy under bulk writes
0acknowledged writes lost in 30 kill and network-cut rounds
7 daysof daily backups, off the machine

From the ndb bench and the replication kill loops on one machine (ndb 1.27 and 1.28). Your numbers depend on your data and your network.

What you see

Every server comes with the screens that answer “is it OK?”

Not a bare endpoint. The Cloud samples each server, keeps a week of history, and tells you before your users do.

Requests and query time

Requests/sp99 ms

Requests and query time

Requests/sp99
0612MonWedFriSun

A week at a glance: the daily peak, the slow hour, the day a deploy changed the query time.

Alarms

email
Server downOK
Disk over 80%fired 2d ago
Copy lag over 30 sOK
Backup failedOK

An email when an alarm starts and when it ends.

Backups

Cloudflare R2
Mon
Tue
Wed
Thu
Fri
Sat
Sun

One a day, online, kept 7 days. Restore into the same server or a new one.

Disk

38.2 of 150 GiB

Disk, last 30 days

0 GiB25 GiB50 GiB30d agonow

How fast the data grows, so you resize before it is full.

Data

from /_stats
Collections6Documents84.1MLargestcdrs · 29.8 GiBPartitions18 monthsIndex buildingnone

What is inside, without a query.

Replication

Your app in one region, its data in two. Reads stay local.

One owner per database takes the writes. A copy in another region follows its WAL. Apps next to the copy read in microseconds, and their writes go to the owner and come back before the answer.

Example numbers of a made-up copy. They change every second.

OWNER São Paulo br-sp-1 · qzu-mkfs-gan COPY Ashburn us-va-1 · lem-bova-ris web, mta worker ndb · writes ndb · reads local WAL stream · lag 0.4 s forwarded write · 118 ms read: 26 µs one owner per database
Lag0.4 s
Round trip118 ms
Stream412 rec/s
  1. Add a copy

    Pick the server and the region of your workers. The Cloud makes the token, sets the copy and gives it the same encryption key.

  2. It syncs alone

    The copy takes a snapshot, then follows the WAL in real time. You see the progress, the lag and the round trip.

  3. Apps read local

    Point the worker at the copy. Reads are local; a write goes to the owner and the next read sees it.

  4. Move the owner when you want

    Promote is one click with a typed name, never automatic, so a short network cut never makes two owners.

The engine

Query like Elasticsearch. Aggregate like MongoDB.

The routes and filters your team already knows: _search, _count, _bulk, date math and index patterns; $in, $regex, $elemMatch; a pipeline with $match, $group, $dateTrunc and $lookup.

Search

Filters, sort, pages, a time range that skips whole months.

request200 OK · 4 ms
POST /cdrs-2026-*/_search
{
  "query": {
    "account_id": 4821,
    "call_status": { "$in": ["answered", "missed"] },
    "ori_start_time": { "$gte": "now-30d/d" }
  },
  "sort": { "ori_start_time": -1 },
  "limit": 20
}
Aggregate

Group and count on the columns, on every core. This is the chart a dashboard draws.

request200 OK · 123 ms on 2M docs
POST /cdrs/_aggregate
{ "pipeline": [
  { "$match": { "account_id": 4821 } },
  { "$group": { "_id": { "$dateTrunc": { "date": "$ori_start_time", "unit": "day" } },
                "calls": { "$sum": 1 } } },
  { "$sort": { "_id": 1 } } ] }
result · calls per day

Calls per day

010002000Oct 31Nov 15Nov 29
Measured, not promisedhover a bar
GET by _id
26 µsunix socket, hot, p50 (ndb 1.27.1)
small _search
40 µs10 docs, unix socket, p50 (ndb 1.27.1)
copy lag under bulk
18 msp99 while a client writes ~84k docs/s (ndb 1.28)
aggregate, 2M docs
123 msevents per type, every core (ndb 1.11)
aggregate, 2M docs, lookup
175 msa $lookup dashboard (ndb 1.11)

Log scale. Hover a bar for how it was measured.

~512 MB

of memory at any data size. ndb keeps data on disk in Parquet segments with zone maps and indexes, so a big collection does not need a big machine.

From make bench on one machine (ndb 1.11 to 1.28). Your numbers depend on your data, your queries and your size.

Backups

Every day off the machine. Any minute of the last day.

A daily backup goes to object storage, out of the server's machine, and stays 7 days. Point in time recovery puts a collection back as it was at any instant of the last 24 hours, into a new name, while the server runs.

qzu-mkfs-gan · the last 7 days
daily backuppoint in time window
Move over the line to pick a moment to restore.
Restore into a new server

Test a backup without touching production, then point your app at it if you want.

Or back into its server

A few minutes of stop, with the typed name to confirm.

Download it

One file, yours. ndb backups restore on any ndb, also on your own machine.

Security

Encrypted on disk, field by field. TLS on the wire.

Mark a field as encrypted and ndb seals it before it reaches the WAL. A CPF, a card token or a key never sits on disk, in a backup or in a log as plain text, and you can still find it by equality.

customers · encrypted: ["cpf"], blind: ["cpf"]
Your app sends and reads
{
  "name": "Ana Souza",
  "cpf": "123.456.789-00",
  "plan": "pro"
}
On disk, in backups and logs
{
  "name": "Ana Souza",
  "cpf": "ndb:e1:k1:Qm9yZGFzIGRlIGNoYWxlIGVt…",
  "plan": "pro"
}
AES-256-GCM, a new nonce each writeequality and unique on a blind hashkey rotation with no stop
TLS on every connection

A certificate per server that renews by itself. The daemon has no public port: TLS ends at the edge, on the server's own name.

A token per app

Read, write or admin, on some collections only. A bad token locks out its address for a while.

One tenant per server

Your own process, disk and key. No data is shared with another customer.

Connect

One URL. Every client already reads it.

Set NDB_URL and keep your code. Use the Elasticsearch routes and MongoDB filters you know, and open Dev Tools in the Cloud to try a query.

ndb-railsGoTypeScriptcurlDev Tools in the browser
terminal
# .env
NDB_URL=tcp+tls://:$TOKEN@qzu-mkfs-gan.br-sp-1.ndb.clowk.in:7070

# any HTTP client
POST /cdrs/_search
{ "query": { "account_id": 4821, "ori_start_time": { "$gte": "now-7d/d" } },
  "limit": 3 }

# 200 OK · 4 ms · 3 of 1240
Taken care of

The parts you would forget at 3 a.m.

TLS and tokens

TLS on 7070 that renews by itself. A token per app, with only the rights it needs.

Your own key

Encrypted fields with a key kept by the Cloud, so a restore never needs a key you lost.

Backups off the machine

Daily and online. Download one, or restore it into a new server to test it.

Upgrades

A new ndb release is one button, one server at a time, with the release notes next to it.

Create a server, set NDB_URL, ship.