Sotiris Kaniras
Sotiris Kaniras

Reputation: 680

Should I use Redis to cache the response of queries?

I have a social app on a Parse Server (Ubuntu) and I need to cache server-side the users' content, like their main feed and chat, in order to speed things up. Is Redis suitable for that kind of caching? If not, what would you recommend?

Also, I was thinking a way to minimize my db reads and I came up with an idea of an up-to-date cache, where I'll have triggers on new post saves and there, I'll be refreshing my cache. Is that a good practice?

Upvotes: 0

Views: 206

Answers (1)

TheDude
TheDude

Reputation: 3952

Redis can deifnitely be used to cache stuff. Twitter uses (or at least used to) Redis to cache the timeline. This blog post can give you more insight as to how they use it. Lot of good snippets of information for why Redis was chosen.

Upvotes: 1

Related Questions