4 ms·
I treat Redis a bit like I treat PostgreSQL. It's what I use when I don't know what I should use. (In fact these days I might even be tempted to start with a
by Lio 5y ago
I treat Redis a bit like I treat PostgreSQL.
It's what I use when I don't know what I should use.
(In fact these days I might even be tempted to start with a simple PostgreSQL based queue and only swap to Redis later if it becomes clear that's what's needed).
I guess a better approach might be to carefully analyse requirements up front but if those requirements aren't known at the time you start the project it's useful just to get you going.
- altdataseller 5y agoSame. Kafka might be better for larger datasets/throughput but a much harder to maintain and manage. Redis is much simpler if you know you aren’t going to scale that much
- morelisp 5y agoIt's less about scale and more about availability - by the time I've set up a 3 Redis + 3 sentinel cluster it doesn't look operationally too different in complexity than a small Kafka cluster (and more complex once KRaft is ready). But a single non-HA Redis is way easier. (But if I don't need HA - a single memcache is easier yet...)