Best way to keep status of off/online streams updated?

Currently I’m writing an app which will do an json call, retrieve channel information (based on a submission), and then saves that information in to a database for later use and display on my site.

However one thing I’m curious about, what is the best way to handle keeping up to date stream status without bloat and hurting performance? Would a cronjob that executes a function that grabs all the streams in the db, and then makes a call using the channel names, checking to see if each one is online be the right way to go? or Should I just set up middleware that does a check on page request?

The best way is probably to poll,separated,list,of,channels, which will return a response containing all the specified streams that are currently live. The offline ones will be missing from the response.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.