node.js - Redis Many Subscribe -


after reading many articles , decide user socketio + node + redis . need create node js server handle many request

now , think have facebook site

every user connect node js server ( randomly ) , subscribe user id here

client.subscribe('<the user id of person user this'> );

and user many publish message him .

client2.publish("<user id of receiver>" , "the notifcation");

now client node 5 ( example ) can receive notification of user of node 21 ( example)

it seem there no problem , wait , think 100 million user , 100 million subscriber have , if person send notification specific user , subscriber should check if own message ( redis automatically )

do think redis can handle problem , have not tested scenario in real world , have not found 100 million user yet!

as new redis , please redis,node expert me of scenario ...


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -