zlacker

[return to "Do you really need Redis? How to get away with just PostgreSQL"]
1. before+9r[view] [source] 2021-06-12 12:14:54
>>hyzyla+(OP)
Can anyone explain the need for redis in a clear way for someone who knows how databases work but isn't a backend developer? What alternatives are there? What did people do to solve the same problem before redis existed?
◧◩
2. snarky+cH[view] [source] 2021-06-12 14:58:21
>>before+9r
ELI5:

Redis is really a mix-bag of many useful commands, see [https://redis.io/commands]. It has been referred to as the "swiss army knife" because you can build many custom solutions from these building blocks. Still, its most common use-case is for in-memory key/value caching for performance reasons. For instance, if you have one database query that takes a particularly long time, you can execute it once and store the result in redis, and then retrieve that value extremely fast.

[go to top]