Run it
Redis
A 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 Redis
The flavour is picked when a database is created, in the dashboard's New database dialog or with flavour=redis on the bench API's /db, and never changes. A Redis database's object names carry a redis segment, so every object boots the right server from its own name.
Routing, replication, rewrites and restarts are the same code for both: the two wasm builds have the same exports and almost the same imports. One connection can switch between a Valkey and a Redis database with AUTH.
Building with Redis
VADO_REDIS=1 npm run deployWithout VADO_REDIS=1, the build leaves Redis out and every database runs Valkey. With it, the upload grows from 0.86 MB to 1.77 MB gzipped; startup time didn't measurably change, since wasm compiles lazily.
Differences
- Redis lacks Valkey's
import-mode, which replicas and rewriters need so nothing expires on its own. A patch adds it. - Redis has no
CLIENT IMPORT-SOURCE; with that patch, every write on a replica counts as the primary's stream. INFOshowsexecutable:/valkey-server, the name the shared host code passes.
The AGPL licence
Redis 8 is available under RSALv2, SSPLv1 or AGPLv3. redis.wasm and its patches and stubs are distributed under the AGPLv3. The rest of vado is Apache-2.0, and valkey.wasm is BSD 3-Clause.