Any ideas how to create parameterised streaming api?

坚强是说给别人听的谎言 提交于 2019-12-24 12:15:45

问题


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:

  1. Create redis channel for messages (like twitter statuses).
  2. Each connected socket subscribes on this channel.
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!