vado / docs
GitHub

Run it

Security

Who can connect, what clients may change, how data travels, where copies live, and what the bench token and the dashboard allow.

Authentication

  • A shared password. VALKEY_PASSWORD makes AUTH mandatory, and the AUTH username names the database. There are no users or ACLs within a database.
  • Optional per-database passwords. A database created with password=new takes only its own password over TCP or the WebSocket. The catalog keeps a salted SHA-256 of it. Any other database takes the shared password, and a service binding's shared password opens every database.
  • A wrong password creates nothing. AUTH checks the shared password before it looks up or creates a database. Passwords are compared in constant time.
  • Failed AUTHs are rate limited to 30 a minute per client address, then refused for a minute. Service bindings aren't limited.
  • Before AUTH, only AUTH, HELLO and QUIT run, and requests are capped at 64 KB.

Without a password

Anything that reaches connect() is in. That is fine behind a service binding, which only your own Workers can call. Set the password before putting Spectrum in front; /ws refuses to serve without one.

What clients can change

Persistence, memory, networking and auth belong to the service. CONFIG SET takes only settings that change how data behaves: maxmemory-policy, maxmemory-samples, notify-keyspace-events, the listpack, ziplist, intset, HyperLogLog and stream encoding thresholds, lfu-log-factor, lfu-decay-time, the slowlog and latency monitor settings, busy-reply-threshold, lua-time-limit and activerehashing.

An allowed setting goes to every primary and lasts until that shard restarts. Anything else gets an error. CONFIG inside MULTI, SAVE, BGREWRITEAOF and ACL are refused.

Transport

  • Spectrum: turn on TLS. Without it the password and all data cross the internet in plain text.
  • WebSocket: use wss://. The shim's local port is plain text on 127.0.0.1.
  • Service binding: stays inside Cloudflare.
  • Between objects: only code in this Worker holds the bindings that reach shards, replicas and rewriters. Clients reach only the router.

Replicas and data location

A replica is a full copy of its shard, in memory, in its region. Data that must stay in one region doesn't belong in a database with shards or replicas elsewhere. Replica names can't be claimed by a client: database names can't contain dots, so no database maps onto <shard>.r.<region>. Object names carry database names, so anyone who can read the Worker's logs can see which databases exist.

The bench token and the dashboard

The bench API is off unless BENCH_TOKEN is set, and with the token anyone can do anything to any database. The dashboard lists every database's name and anyone can watch one; watching reads one key a second for response times, and writes it only while someone signed in watches. Changes check the Access token on every call, and the router's own checks still apply to commands run from the dashboard.

Browse topics or type to search

Introductionvado runs real Valkey 9.1, compiled to WebAssembly, in Cloudflare Durable Objects. A router in a Worker spreads keys over the shards, so valkey-cli and ioredis see one ordinary server.What you getIntroductionA first commandIntroductionThe dashboardIntroductionRead onIntroductionQuick startCreate the Access application, deploy the Worker, and connect valkey-cli or ioredis. About ten minutes on Workers Paid.1. Create the Access applicationQuick start2. DeployQuick start3. Connect valkey-cliQuick start4. Connect from a WorkerQuick startRun it locallyQuick startArchitectureA router per connection, shard objects running Valkey with their AOF in SQLite, and memory-only replicas in other regions. What each part owns, and what it costs.Where everything livesArchitectureHow clients reach itArchitectureRouterArchitectureShardsArchitectureRead replicasArchitectureRewritersArchitectureCatalogArchitectureWatcher, Pulse and the dashboardArchitectureWhat the design buys, and costsArchitectureSharding and routingKeys hash to 16,384 slots, slots map to shards in contiguous ranges, and a database's size and placement are fixed when it is created.Slots and shardsSharding and routingShard countSharding and routingPlacementSharding and routingHow the router routesSharding and routingCROSSSLOTSharding and routingShard classesSharding and routingConnectionsSharding and routingUnsupported commandsSharding and routingDurabilityEvery acknowledged write is in SQLite before its reply leaves. Group commit keeps that cheap under load, a helper object compacts the AOF, and deploys restart shards without failing commands.Write-through storageDurabilityGroup commitDurabilityAOF rewrites in a helperDurabilityWhen a shard resetsDurabilityClean restarts on deployDurabilityRead replicasEach shard can keep a memory-only copy in other regions, fed from its AOF. Routers read the nearest one, a connection always reads its own writes, and an idle database's replicas sleep.RegionsRead replicasCopy, then streamRead replicasWhat a replica read can seeRead replicasFailuresRead replicasIdle sleepRead replicasLife of a requestWhat happens between a client sending SET k v and reading +OK, and what each reply tells you.One SET, step by stepLife of a requestWhat a reply tells youLife of a requestOperationsDeploy, configure, create databases with a placement, sign in to the dashboard, drive the bench API, and upgrade without breaking running shards.DeployOperationsSettingsOperationsCreate a database with a placementOperationsDashboard sign-inOperationsThe bench APIOperationsUpgrading safelyOperationsSecurityWho can connect, what clients may change, how data travels, where copies live, and what the bench token and the dashboard allow.AuthenticationSecurityWithout a passwordSecurityWhat clients can changeSecurityTransportSecurityReplicas and data locationSecurityThe bench token and the dashboardSecurityLimits and measurementsWhat one shard holds, how fast writes and reads went, and the conditions behind each number. Measured on production in November 2026, on one account.LimitsLimits and measurementsMemoryLimits and measurementsThroughputLimits and measurementsLatencyLimits and measurementsReplicasLimits and measurementsRewritesLimits and measurementsCold starts and deploysLimits and measurementsFailure testsLimits and measurementsWhat these don't showLimits and measurementsRedisA database can run Redis 8.12 instead of Valkey. It is opt-in at build time because it doubles the upload and is distributed under the AGPLv3.Choosing RedisRedisBuilding with RedisRedisDifferencesRedisThe AGPL licenceRedisRepositoryAn npm workspace: two apps and three packages. How to check, test and build it, and what CI runs on every push.LayoutRepositoryCommandsRepositoryEnd-to-end testsRepositoryContinuous integrationRepositoryThe wasm buildsRepositoryCode rulesRepository
Local search. Nothing is sent to a server.Esc to close
Documentation