D
D
drunkstudent2015-10-05 18:58:37
Redis
drunkstudent, 2015-10-05 18:58:37

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

1 answer(s)
P
Puma Thailand, 2015-10-06
@drunkstudent

if the social network is not big, then it will roll

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question