zlacker

[parent] [thread] 13 comments
1. cube22+(OP)[view] [source] 2021-06-12 08:12:19
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.

replies(2): >>arpa+m >>jasonw+M1
2. arpa+m[view] [source] 2021-06-12 08:17:01
>>cube22+(OP)
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.
replies(1): >>miohta+q2
3. jasonw+M1[view] [source] 2021-06-12 08:32:19
>>cube22+(OP)
Redis is inherently lossy as a matter of basic design, and that's not even touching on the many other issues born of NIH solutions rampant within it. You may not hit the behavior until you push real loads through it. If you talk to anyone who has, I'm confident they'll agree with the criticism that while it may be an excellent cache, it should never be treated as a ground truth database. It's excellent as a slower memcachd with richer features. It's not a database. You can also read Aphyr's reports over the years, which to be utterly frank, bent over backwards to be charitable.
◧◩
4. miohta+q2[view] [source] [discussion] 2021-06-12 08:37:29
>>arpa+m
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.
replies(3): >>arpa+I2 >>charro+nh >>EvilEy+am
◧◩◪
5. arpa+I2[view] [source] [discussion] 2021-06-12 08:40:12
>>miohta+q2
GP was asking why redis is not a reliable storage solution/database. Redis is great as an unreliable (not source-of-truth) storage.
replies(1): >>kwdc+CN
◧◩◪
6. charro+nh[view] [source] [discussion] 2021-06-12 11:32:00
>>miohta+q2
I work on a SaaS community forums service and I can assure you data loss is not acceptable to our clients.

As a result we use MySQL w/ memcached, although we are considering a swap to redis for the caching layer.

◧◩◪
7. EvilEy+am[view] [source] [discussion] 2021-06-12 12:33:29
>>miohta+q2
> 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.

replies(1): >>miohta+1r
◧◩◪◨
8. miohta+1r[view] [source] [discussion] 2021-06-12 13:23:58
>>EvilEy+am
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.
replies(2): >>TheCoe+pJ >>obstac+3d1
◧◩◪◨⬒
9. TheCoe+pJ[view] [source] [discussion] 2021-06-12 16:20:52
>>miohta+1r
How is that a sensible tradeoff compared to just using something that was actually designed to be a database when you need a database?
replies(1): >>miohta+N52
◧◩◪◨
10. kwdc+CN[view] [source] [discussion] 2021-06-12 16:55:35
>>arpa+I2
For that temporary use case, how does it compare to memcached?
replies(1): >>jasonw+jf1
◧◩◪◨⬒
11. obstac+3d1[view] [source] [discussion] 2021-06-12 20:43:16
>>miohta+1r
> a sensible risk tradeoff

Note the tradeoff doesn't make sense as soon as you're operating at a meaningful scale. A small likelihood of failure at small scale translates to "I expect a failure a million years from now", whereas at large scale it's more like "a month from now". Accepting the same percent risk of data loss in the former case might be OK, but in the latter case is irresponsible. Provided whatever you're storing is not transient data.

replies(1): >>miohta+162
◧◩◪◨⬒
12. jasonw+jf1[view] [source] [discussion] 2021-06-12 21:06:54
>>kwdc+CN
Mostly boils down to Redis having a richer API, and memcached being faster / more efficient. The new EXT store stuff allows you to leverage fast ssd's to cache stupid huge datasets. Memcached is also one of the most battle tested things out there in open source. I've used them both plenty over the years, but tend to lean towards memcached now unless I really need some Redis API feature.
◧◩◪◨⬒⬓
13. miohta+N52[view] [source] [discussion] 2021-06-13 07:54:02
>>TheCoe+pJ
You do not need a relational database for a simple chat/forum application.
◧◩◪◨⬒⬓
14. miohta+162[view] [source] [discussion] 2021-06-13 07:57:15
>>obstac+3d1
You are correct. I wrote the original comment as "single server" so I assume it does not mean a meaningful scale and can be more effectively dealt with a support ticket. Not everything needs to be growth trajectory SaaS.
[go to top]