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. wokwok+T3[view] [source] 2021-06-12 07:44:04
>>chmod7+K
Why would you choose to use a system that doesn't scale by default?

Single user local applications? Fair.

Web applications? Very strange choice imo.

Reddis is great, but it is *not* a database, and it's thoroughly rubbish at high load concurrency without clustering, which is (still) a massive pain in the ass to setup manually.

Of course, you can just use a hosted version off a cloud provider... but, it's generally about 10x more expensive than just a plain old database.

/shrug

I mean, sure, it's (arguably...) step up from just using sqlite, but... really, it's easy, and that's good... but it isn't good enough as a general replacement for having a real database.

(To be fair, sqlite has got some pretty sophisticated functionality too, even some support for concurrency; it's probably a step up from redis in many circumstances).

◧◩◪
3. arpa+a5[view] [source] 2021-06-12 07:58:18
>>wokwok+T3
redis is not a database. It's a key-value based cache. If you're using it as a database, you're gonna have a bad time.
◧◩◪◨
4. cube22+s6[view] [source] 2021-06-12 08:12:19
>>arpa+a5
Why so? It has persistence and I'm not aware of any reported data loss happening with it.

It's also got loads of complex and useful instructions.

◧◩◪◨⬒
5. arpa+O6[view] [source] 2021-06-12 08:17:01
>>cube22+s6
Data loss can occur between flushes to disk, for example (by default every 2 seconds / every I_FORGOT megabytes). Perhaps (most likely) it is possible to fine-tune the configuration to have redis as a very reliable data store, but it doesn't come with such settings by default, unlike most of RDBMSes.
◧◩◪◨⬒⬓
6. miohta+S8[view] [source] 2021-06-12 08:37:29
>>arpa+O6
Not all use cases require reliable data storage and it is ok lose few seconds of data. Think simple discussion forums, internal chat applications. There are some scenarios where ease of use and a single server scalability pays off in the faster development and devops cost.
◧◩◪◨⬒⬓⬔
7. EvilEy+Cs[view] [source] 2021-06-12 12:33:29
>>miohta+S8
> Not all use cases require reliable data storage and it is ok lose few seconds of data. Think simple discussion forums, internal chat applications.

That is definitely not ok. I'd be really pissed as a user if I wrote a huge comment and it suddenly disappeared.

◧◩◪◨⬒⬓⬔⧯
8. miohta+tx[view] [source] 2021-06-12 13:23:58
>>EvilEy+Cs
It only disappears if there is a catastrophic failure. The likelihood for such thing to happen when you write a huge comment are less than jackpot in Las Vegas, a sensible risk tradeoff for better development experience and cost.
◧◩◪◨⬒⬓⬔⧯▣
9. TheCoe+RP[view] [source] 2021-06-12 16:20:52
>>miohta+tx
How is that a sensible tradeoff compared to just using something that was actually designed to be a database when you need a database?
◧◩◪◨⬒⬓⬔⧯▣▦
10. miohta+fc2[view] [source] 2021-06-13 07:54:02
>>TheCoe+RP
You do not need a relational database for a simple chat/forum application.
[go to top]