---
title: "webhook-proxy: Discord webhook proxy and queue | VulCode"
description: "webhook-proxy is a middleware layer through which all outbound communication from our services to Discord webhooks passes."
url: "https://vulcode.com/en/portfolio/integrations/webhook-proxy"
lang: "en"
---

[Integrations & scripts](https://vulcode.com/en/portfolio/integrations)

# webhook-proxy

Discord webhook proxy and queue

A go-between for our services and Discord webhooks: it puts notifications in a queue, waits when Discord tells it to slow down and retries failed sends so that no message is lost.

[Service: Integrations and automation](https://vulcode.com/en/services/api-integrations)

## 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.

## What we did

- A separate event queue for each send target

- Handling 429 responses: waiting out the limit (backoff) before the next attempt

- Retrying sends after 5xx errors, without losing events

- A single exit point for all communication between our services and Discord

- Sudden traffic spikes go into the queue and notifications leave in order

## Related projects

- Project
  ### Ops scripts
  Scripts that check the state of the infrastructure and repositories with one command: certificates, backups, secrets, links, ports and configuration consistency.
  [Project](https://vulcode.com/en/portfolio/integrations/ops-scripts)

- Project
  ### ghapi
  An API that collects GitHub work statistics and serves them to dualfroz.com, vulcode.com and profile READMEs. It answers with raw JSON or a ready SVG card to embed.
  [Project](https://vulcode.com/en/portfolio/integrations/ghapi)

- Project
  ### Nebula
  Plugins for servers of the game SCP: Secret Laboratory, connected to Discord. Staff run ranks, punishments and player reports in one system, from a panel inside the game.
  [Project](https://vulcode.com/en/portfolio/integrations/nebula)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
