I've noticed that every once in a while, my Filtered Stream will stop receiving data, but I'm not seeing any exceptions being thrown. I've worked with the streaming API in Python before and ran into this same thing. I ended up keeping a timestamp of the last time I received data, and checking it in another thread. If it went over a certain threshold, it would kill the stream and start a new one.
I was wondering if anyone had a better solution for keeping their streams alive? I'd prefer not to do it the same way with my current project - I'm receiving thousands of tweets per second and my old method seems too inefficient.
I was wondering if anyone had a better solution for keeping their streams alive? I'd prefer not to do it the same way with my current project - I'm receiving thousands of tweets per second and my old method seems too inefficient.