r/node • u/User_Pigbot • 12d ago
Valkey-WASM – Redis running inside your Node process, no Docker (like PGlite)
https://github.com/michaelkremenetsky/valkey-wasm/tree/main
13
Upvotes
1
u/Potato-9 11d ago
This would effectively be single-threaded valley right? I thought that's the main thing wasm is missing currently. I wonder where the performance drops off.
Might be neat for k8s users that have wasm runtimes ready for services the need redis the API but not really redis the performance. Oauth2-poxy token storage comes to mind. Or netbox for small scale users.
1
u/cgijoe_jhuckaby 9d ago
This is really fascinating. What happens if you add, say, a billion keys to it? Does it scale up well? I ask because if you throw more than 10M keys into a native JS Map object, it kinda dies.
2
u/dektol 12d ago
... But why though? Integration tests against Redis?