问题
I want to create parameterised streaming api like http://dev.twitter.com/pages/streaming_api_methods#statuses-filter
The straightforward way I see is following:
- Create redis channel for messages (like twitter statuses).
- Each connected socket subscribes on this channel.
- Inside redis callback each sockets check if current message fits supplied parameters (parameters could be set as separate socket message)
What you think guys?
回答1:
You might want to look at nats
来源:https://stackoverflow.com/questions/6029565/any-ideas-how-to-create-parameterised-streaming-api