3 ms·
It's easy to write a KV store, even a KV store with key expiration. But Redis is quite a bit more than that. Consider sharding and replication at least. Then li
by nine_k 1y ago
It's easy to write a KV store, even a KV store with key expiration. But Redis is quite a bit more than that. Consider sharding and replication at least. Then lists, sets, zsets, bitfields, streams, geospatial indexes, hyperloglog / bloom filters, time series.
Something like LevelDB is relatively easy to write. Then you can build the rest of Redis on top of it.
- johnisgood 1y ago> Then lists, sets, zsets, bitfields, streams, geospatial indexes, hyperloglog / bloom filters, time series. I mean, I have my own C libraries for most of these!
- dns_snek 1y agoIn Redis those operations are performed server-side, on a shared dataset, and concurrently by many clients.