▲ | smacker 6 hours ago | |||||||||||||||||||||||||||||||||||||
I like using postgres for everything, it lets me simplify infrastructure. But using it as a cache is a bit concerning in terms of reliability, in my opinion. I have witnessed many incidents when DB was considerably degrading. However, thanks to the cache in redis/memcache, a large part of the requests could still be processed with minimal increase in latency. If I were serving cache from the same DB instance, I guess, it would cause cache degradation too when there are any problems with the DB. | ||||||||||||||||||||||||||||||||||||||
▲ | aiisthefiture 6 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
Select by id is fast. If you’re using it as a cache and not doing select by id then it’s not a cache. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | motorest 5 hours ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
> But using it as a cache is a bit concerning in terms of reliability, in my opinion. This was the very first time I heard anyone even suggest that storing data in Postgres was a concern in terms of reliability, and I doubt you are the only person in the whole world who has access to critical insight onto the matter. Is it possible that your prior beliefs are unsound and unsubstantiated? > I have witnessed many incidents when DB was considerably degrading. This vague anecdote is meaningless. Do you actually have any concrete scenario in mind? Because anyone can make any system "considerably degrading", even Redis, if they make enough mistakes. | ||||||||||||||||||||||||||||||||||||||
|