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. hardwa+wd[view] [source] 2021-06-12 09:34:32
>>chmod7+K
Hey I assume this is like a joke and not too serious, and we'd all switch off when things got a bit hairy, but I sure hope other readers can tell.

I am literally in the middle of digging a company out of this mistake (keeping Redis too long) right now. If your software/data is worth something, take a week or a month and figure out a reasonable schema, use an auto-generation tool, ORM, or hire a DB for a little bit to do something for you. Even MongoDB is better than redis if your're gonna do something like this.

◧◩◪
3. chrisd+Rl[view] [source] 2021-06-12 11:07:06
>>hardwa+wd
If you store protos in your Redis keys (like most people using “NoSQL” for data storage), this comment doesn’t have much punch. Pretty sure we all can think of some pretty high profile examples of NoSQL + structured data working very very well at scale.
◧◩◪◨
4. hardwa+Rm[view] [source] 2021-06-12 11:20:36
>>chrisd+Rl
I'm not trying to get on people who are using redis as a cache (for photos, or any other ephemeral data).

The idea I was trying to get at was using redis to store data traditionally reserved for OLTP workloads.

> Pretty sure we all can think of some pretty high profile examples of NoSQL + structured data working very very well at scale.

Well that's the thing, you very rarely hear of companies who cursed their decision early on to use NoSQL when they realized that their data was structured but in 20 different ways over the lifetime of the product. Some datasets only need light structure (key/value, a loosely defined document, schema-included documents), and other things should probably have a schema and be stored in a database with a tight grip on that schema and data consistency/correctness. Please don't use redis in that latter case.

◧◩◪◨⬒
5. dionia+pJ[view] [source] 2021-06-12 15:17:41
>>hardwa+Rm
operations aside, the big problem in my experience dealing with these systems is you are extremely limited (on purpose) and cant do much sorting/filtering/aggregation/querying. that's what really makes true db's powerful. I love redis for what it does, i just dont think it replaces a DB well in many cases where its non-transient data
[go to top]