How to limit Streaming API current?


#1

Hallo.

I have to ask you, if there is any way to limit Streaming API current in a sense of number of tweets passed per second? Looking at our rapidly decreasing account balance, we suspect our application is not able to handle the amount of streamed tweets in a short period of time.
It is also very important to us to get all data in less or more real time, so we cannot use neither historic stream nor interaction.sample filter.

What would be the best approach?


#2

I would advise looking at using Push delivery. With Push, you can set the delivery frequency and maximum delivery size for the data you are receiving - this essentially allows you to limit the stream to a certain number of interactions per second. Setting the delivery frequency to 'continuous' will result in data being delivered as often as possible, which tends to be approximately once every 3-5 seconds.


#3

Thanks a lot for your quick response!