A Kalman Filter to Avoid Annoying the Server (or the Guilty Pleasure of Over-Engineering)
I have a menu bar app that needs to know a single number. A percentage from 0 to 100. To fetch it, it pings a server every 30 seconds. Do the math: 30 seconds equals 2 calls per minute, 120 per hour, 960 over an 8-hour workday. Nearly a thousand HTTP requests a day to check a number that sometimes doesn’t change for 20 minutes. That’s not monitoring. That’s harassment. ...