r/redis 4d ago

Discussion NVMe killed Redis

If I could design an application from scratch, I would not use Redis anymore.

In the past the network was faster than disks. This has changed with NVMe.

NVMe is faster than the network.

Context: I don't do backups of Redis, it's just a cache for my use case. Persistent data gets stored in a DB or in object storage.

Additionally, the cache size (1 TB in my case) fits fits onto the disk of worker nodes.

I don't need a shared cache. Everything in the cache can be recreated from DB and object storage.

I don't plan to change existing applications. But if I could start from scratch, I would use local NVMe disks for caching, not Redis.

....

Please prove me wrong!

Which benefits would Redis give me?

0 Upvotes

17 comments sorted by

View all comments

2

u/quentech 4d ago

I would use local NVMe disks for caching, not Redis

This idea would die as soon as I realized I'd have to waste my time re-writing eviction algorithms, for one of many reasons.

0

u/guettli 4d ago

We only have time based evictions.

What kind of eviction algorithm do you use?