3 ms·
But Long-polling doesn't scale in certain situations where you can have infinite webhooks. I'm sure many people reading this have many idle GitHub repos set up
by gwbas1c 5y ago
But Long-polling doesn't scale in certain situations where you can have infinite webhooks.
I'm sure many people reading this have many idle GitHub repos set up with webhooks into some kind of build server. The repo might see no more than one commit a week.
It makes absolutely no sense for GitHub to long-poll (or websocket) all of these build servers.
(Now what would make sense is for /events to support a way to flip over to a webhook when it's idle. IE, long-poll for a minute, then the next request sends a URL for a 1-time webhook called on the next event.)