vado / docs
GitHub

Run it

Limits and measurements

What one shard holds, how fast writes and reads went, and the conditions behind each number. Measured on production in November 2026, on one account.

255-304k

SET/s on 16 shards

Through the router, 8 load generators
0 missing

After aborting every shard

50,000 acknowledged writes, twice
10-25 s

To new code after a deploy

With no failed commands

Most numbers come from the bench API, which runs its clients inside Cloudflare: load generators through the router, Sender objects in each of the nine regions, or straight to one shard. Latency over TCP came from one laptop on a home connection.

Limits

LimitValueWhy
Data per shard64 MBValkey's data lives in wasm memory, inside a 128 MB memory limit
Request sizeAbout 8 MB; 64 KB before AUTHA shard holds the query, the value and its AOF entry
CPUOne thread per shard; about 30 s per commandAn object kept near 100% CPU is reset
Writes per shard114-130k SET/s, deep pipelinesA shard runs on one thread
With 9 replicas49-61k SET/s per shardReplication streams hold back the primary's input
Size, regions, replicasFixed at creationRouting is computed from the catalog record
Replica readsUp to one replication lag staleOnly on other connections

Memory

The 64 MB limit counts Valkey's used_memory. The memory limit counts wasm linear memory, which measured 1.08 to 1.29 times used_memory with the build's allocator, flat across rounds of deleting and rewriting half the keys.

Linear memory never shrinks: after deleting data from 39 MB to 9 MB, it stayed at 44 MB. With noeviction, writes past the limit get OOM; with allkeys-lru the shard evicts like a cache.

Throughput

LoadResult
Deep pipelines straight to one shard114-130k SET/s, 250-306k GET/s
16 shards through the router, 8 load generators255-304k SET/s with group commit, 48-66k before it
Rows written per write, under that loadAbout 0.008 with group commit, 0.26 before it
64 shards, 640 connections, 1-byte values219k SET/s in a burst of tens of seconds, 0 errors
200 connections over 16 shards20-26k ops/s: past the socket budget, on batched calls

Bursts, not a sustained ceiling. From a single laptop over TCP, throughput is bound by its round trips: valkey-benchmark with 200 connections and 64-deep pipelines reached 45.5k SET/s on one shard.

Latency

Commandp50p99
PING, answered by the router10-12 ms40 ms
GET54 ms95 ms
SET57-60 ms173-330 ms
Connect, AUTH, PING85 ms211 ms (p90)

One TCP connection through Spectrum, one command at a time, shards 15 to 45 ms from the router. Nearly everything past the first 10 ms is the Worker's hop to the shard. A write adds one storage commit, which measured 10 to 38 ms p50 from inside a shard, depending on its region.

Replicas

Check, replicas in all nine regionsResult
Every replica serving after the database was createdWithin seconds
A second client reads a write acknowledged to the firstp50 3-41 ms, p99 38-141 ms
Keys written, then read back from every region20,000 of 20,000
Read-your-writes on one connection0 stale in 2,700 checks
WAIT 9 after writes to 3 shardsAbout 0.9 s, the slowest replica's round trip
Replica GET p99 while its primary rewrote under load45 ms, against a primary max of 318-1117 ms

Rewrites

35.6 MB baseTimePINGs during it
Inline1.4-1.9 sBlocked for the whole rewrite
In a rewriter5.2-5.9 s end to endp99 128-175 ms
16 shards rewriting at once, under writesSlowest 1.42 sAll ran in rewriters
300,000 writes across a rewrite, then a restart0 missingAlso with replicas in 2 regions

Cold starts and deploys

EventValkeyRedis
First SET on a new database486-648 ms512-642 ms
Next SET49-62 ms50-66 ms
First GET after an abort, 16 MB of data75-395 ms161-293 ms
First GET after an abort, 56 MB of data79-353 ms146-316 ms
Deploy under loadResult
Shards on the new code10-25 s after the deploy
Commands that failedNone
Slowest replyUnder 1 s
Replicas on the new code and servingWithin 35 s
Counters checked at the endAll correct

Failure tests

TestResult
50,000 acknowledged writes, then every shard aborted0 missing
test/hammer.mjs with CHAOS=111 of 11 invariants held through 35 shard aborts
Connection churn: connect, AUTH, write, read, close6,995 of 7,000 connections
test/differential.mjs, 1 shard against NIdentical replies
36 replicas, 20,000 keysAll read back in each of 9 regions

What these don't show

vado · Valkey and Redis on Durable Objects · Apache-2.0Independent and experimental. Not an official Cloudflare or Valkey product.

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