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?