开发者

Any ideas how to create parameterised streaming api?

开发者 https://www.devze.com 2023-03-06 16:45 出处:网络
I want to create parameterised streaming api like http://dev.twitter.com/pages/streaming_api_methods#statuses-filter

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 开发者_Python百科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?


You might want to look at nats

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号