I run my web app using Amazon EC2 servers and use TweetInvi to maintain a user and filtered twitter stream. I need the streams to be running 24/7.
I am using the StreamStopped event to keep the stream running continuously as described here:
How to keep streaming continuously - Tweetinvi
I am starting the stream in my startup class by using hangfire (http://hangfire.io/) to maintain the stream connection in the background but happy to do this any other way.
My application is kept alive 24/7 if no users connect.
However, after a while, with no exception raised, the streams stop.
Is there a better way to maintain and keep alive a stream?