My application makes lots of calls to FXML3’s AirportBoards; I’m concerned that I’m occasionally missing updates on flights because they arrive or depart between API calls.
I constrain API calls by time, for example, grabbing “flights arriving in next x minutes,” which I do by fetching results 15 at a time, looking at the last result, and grabbing more if that result is arriving in < x minutes until I hit x… which is done so I don’t pay for more data than I need.
One solution I thought of was providing an alternate constraint parameter of “howLong” in seconds (or minutes?), which could constrain scheduled/future results going out x seconds, and past/arrival results going back x seconds. That way flights aren’t going to get missed if they happen to arrive/depart between API calls.
… otherwise, is there an alternate approach to making sure you don’t pay for more than you need, but don’t occasionally skip over a flight?