Answer the question
In order to leave comments, you need to log in
How to use Redis to create user feeds?
I plan to use Redis for the users' newsfeed. The idea is as follows:
1) Create a pub/sub channel and upload user activity there
2) Listen with workers (20-30) to the pub channel and spread activity across lists to users (feed)
3) When a user requests news by extracting the necessary data from the list (LPOP method )
4) Archive the read news (insert in MySQL)
Do I think in the right direction? Maybe there are better options for building custom feeds?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question