no need an extra layer of abstraction to get an "in memory" database in javascript. no need, babel, webpack, ChatGpt, npm and 10000 libraries for this really.
Let me show (works even on the browser):
Run Redis on the same machine. No network latency. You only have a few memcpys and context switches versus an in-process solution, and if those make a difference you shouldn't be using JS anyways
gregors|2 years ago
https://narma.github.io/2015/redis-in-browser/
https://medium.com/fluence-network/porting-redis-to-webassem...
nbittich|2 years ago
const KV = {};
KV["credentials"] = {access_key: "XXXX", secret: "YYYY"};
console.log(KV["credentials"].secret);
hem777|2 years ago
The point was that “just use redis” is a poor and incorrect advice.
hombre_fatal|2 years ago
thegeomaster|2 years ago