About the project
webhook-proxy is a middleware layer through which all outbound communication from our services to Discord webhooks passes. A webhook is an address a service sends a message to so that it appears in a channel. Discord caps how many sends it accepts and, under sudden traffic, answers with a 429 code (too many requests) or a momentary 5xx error (a server-side problem). webhook-proxy queues events separately for each target, waits out the limit and retries the send, so notifications do not get lost.
The challenge
Discord webhooks have hard rate limits, and during traffic spikes notifications can simply vanish: a 429 from the limit or a momentary 5xx and the event is gone. We needed a single point through which all outbound communication passes and that does not drop events.