zlacker

[return to "Do you really need Redis? How to get away with just PostgreSQL"]
1. chmod7+K[view] [source] 2021-06-12 07:07:15
>>hyzyla+(OP)
Funny. My approach is usually the other way around: Can I get away with just Redis?
◧◩
2. Jemacl+WU[view] [source] 2021-06-12 17:01:28
>>chmod7+K
I sorta do this, but my approach is more Redis-first than _just_ Redis. I try to see if I can use Redis for 99.999% of my operations and have a more durable store (like Postgres or something) as a "backup". The nature of Redis is such that even with some persistence features, we kinda have to assume that the data could go away at any minute, so I always build some way to rebuild Redis as fast as possible.

But I've run billions of queries per day against a single Redis instance with zero failures serving up traffic to large, enterprise-level customers with no downtime and no major issues (knock on wood). The only minor issues we've run into were some high-concurrency writes that caused save events and primaries to failover to replicas, and resulted in a few minutes downtime at the beginning of our experiments with Redis-first approaches, but that was easily mitigated once we realized what was happening and we haven't had a problem since.

Huge fan of a Redis-first approach, and while the haters have _some_ valid points, I think they're overstated and are missing out on a cool way to solve problems with this piece of tech.

[go to top]