The state management kind of sucks though, and it isn't sufficiently abstracted over, hence the original article.
So why can't we use actual TCP connections for long-lived relationships? Because kernels make TCP more fragile than it has to be. There's no particular reason TCP connections couldn't outlive process instances, machine reboots, etc., except for the way TCP is implemented in the kernel.
Are we forgetting about every awful firewall and piece of garbage middleware box out there?
We also retry webhooks with a backoff timer until we get an HTTP 200 response.
When any event has been successfully delivered (either by webhook or by a polling query) it is flagged as "delivered" and doesn't appear in subsequent polling, unless you add an include_delivered=true param.