开发者

Twitter UserStream -- maximum number of client connections?

I'm working on a web app 开发者_如何学运维that uses information from the Twitter UserStream.

I'm currently completing all error handling, and it came to my attention that the Twitter UserStream only allows X connections per application. However, I cannot seem to find this value.

I am trying to set up a priority queue for idling and active streams to take offline during exessive client connections. What is the maximum number of connections per application? Cant find this..

As stated in the UserStream API:

Each Twitter account is limited to only a few simultaneous User Streams connections per OAuth application. Once the per-application limit is exceeded, the account’s oldest connection from that OAuth application will be terminated. An account logging in from too many instances of the same OAuth application will continuously cycle their connections as the applications reconnect and throw each other off the service. Note that each application has its own allocation, so that logging in from App1 doesn’t affect your App2 allocation, and visa versa, but running too many copies of either App1 or App2 will cause problems.

https://dev.twitter.com/docs/streaming-api/user-streams

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜