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. chrisd+zn[view] [source] 2021-06-12 11:28:41
>>hardwa+Rm
I mean, Google was built on protos in a “NoSQL” database (BigTable). I think maybe you are overindexing on personal experience.
◧◩◪◨⬒⬓
6. hardwa+3q[view] [source] 2021-06-12 12:00:02
>>chrisd+zn
Sure, but:

1) 99.9% of internet-facing/adjacent businesses are not Google and will never reach even 1% of Google's scale

2) Proto + BigTable is very different from just throwing stuff in redis/mongo. Proto schemas are compile-time enforced, which is great for some teams and might slow others down. Google enforces more discipline than your average engineering team -- this is overkill for most engineering teams.

[go to top]