What to log from an odds poller
Log the transitions, not the polls. Which events deserve a line, which to keep out, and how a small hourly rollup feeds every metric you alert on.
PNCLENGINE
Dated engineering notes on polling the Pinnacle REST API: capacity, cursors, rate limits, storage and monitoring.
Log the transitions, not the polls. Which events deserve a line, which to keep out, and how a small hourly rollup feeds every metric you alert on.
Planning math is a guess until production grades it. Compare planned and actual requests, peak rate, 429s and storage after a month, then adjust.
Every worker shares one per-second ceiling. Partition the boards, pace against one shared budget, and keep one cursor per board: a multi-sport poller.
Lost your since cursor? Stop the delta loop, take one full board read, persist the new cursor with its snapshot, and resume. The full procedure.
Record a handful of real Pinnacle API responses, replay them through your parser, and rehearse 429s, restarts and cursor resumes without spending quota.