News for hackers. Stuff that matters.
Re:I built a receipt printer for GitHub issues by leipert on Friday March 25, 2022 @02:10PM (#30805388)
I would recommend switching to their Events API. Webhooks are great until they aren’t. Querying the Events API means you are able to resume if GitHub, your network or your Raspberry Pi was down.

And bonus, your pi doesn’t need to be exposed to the world.

Re:I built a receipt printer for GitHub issues by bob1029 on Friday March 25, 2022 @02:26PM (#30805526)
Learned this one the hard way. Events are definitely the way to go. You can guarantee perfect synchronization of state if you use it carefully (i.e. as a log you replay as needed).
Re:I built a receipt printer for GitHub issues by daenz on Friday March 25, 2022 @03:25PM (#30806150)
Pull vs push? Why not both! Then you'll get the benefits of low latency and robustness.
Re:I built a receipt printer for GitHub issues by aschmelyun on Friday March 25, 2022 @02:50PM (#30805763)
Ooh, that's good to know. I'll keep that in mind for Version 2!