zlacker

[parent] [thread] 3 comments
1. Fannon+(OP)[view] [source] 2021-06-12 07:24:11
If you already have Postgres in your project and now you get the requirement for an additional cache store, I think it will be less complicated to reuse what you already have instead of adding another DB to your stack.

Of course, at some point of scaling needs a dedicated cache store will make sense anyway.

(Just some justifications from a german engineer :) )

replies(2): >>arpa+e1 >>mossel+N1
2. arpa+e1[view] [source] 2021-06-12 07:38:18
>>Fannon+(OP)
True. However, since cache is usually transient, adding this key-value store/cache is as easy as "docker run redis". No need to provision block storage, and it's really lightweight in comparison.

(that being said, I try really hard not to judge; after all, i'm not without fault: it's 2021 and i'm using bash over cgi-bin to serve web pages for my own hobby projects :))) )

replies(1): >>rualca+u6
3. mossel+N1[view] [source] 2021-06-12 07:44:12
>>Fannon+(OP)
Redis as a cache server requires different settings from redis as a job queue. So you can’t reuse the same server anyway.
◧◩
4. rualca+u6[view] [source] [discussion] 2021-06-12 08:35:35
>>arpa+e1
> True. However, since cache is usually transient, adding this key-value store/cache is as easy as "docker run redis". No need to provision block storage, and it's really lightweight in comparison.

If you're using postgres for caching only, as you do Redis, then you also do not need to provision block storage.

If you happen to already have Postgres running for other uses, you also do not need to provision block storage.

Finally, I would add that Redis clients such as Redisson are resource hogs that cause performance problems on apps, while pg clients are barely noticeable.

[go to top]