Ferrum delivers webhooks reliably.
A webhook is a message one system sends to another when something happens, like "a payment succeeded". Stripe and GitHub send them constantly. Sending one is easy. Making sure it always arrives, even when the receiver is down or a server crashes mid-delivery, is the hard part. That's what Ferrum does.
flowchart LR
A["Your app"] -->|"1. send an event"| G["API"]
G -->|"2. save it safely"| DB[("Database")]
DB --> W["Delivery worker"]
W -->|"3. send, sign, retry if it fails"| R["Receiver's server"]
- Never loses an event once it has said "got it".
- Retries failed deliveries with growing pauses, then parks the ones that never work so you can re-send them later.
- Signs every message so the receiver knows it's genuine.
- Keeps a log of every attempt: what was sent, what came back, how long it took.
- Keeps customers apart: you only ever see your own data.
- Blocks dangerous addresses, so nobody can use it to reach private systems.
You need Python 3.9 to 3.11, plus PostgreSQL and Redis installed (for example with Homebrew).
(cd ferrum-webhook-gateway && python3 -m venv .venv && .venv/bin/pip install -q -r requirements.txt)
(cd ferrum-webhook-worker && python3 -m venv .venv && .venv/bin/pip install -q -r requirements.txt)
infra/local/stack.sh up # starts everything on its own ports; it won't touch your existing databases
ferrum-webhook-worker/.venv/bin/python infra/tests/smoke.py --base http://127.0.0.1:8100 # 13 checks should pass
infra/local/stack.sh downThen follow the guided tour in docs/quickstart.md: watch a delivery arrive, break the receiver and watch the retries, then crash the worker mid-delivery.
Measured on one laptop with everything running on it:
| Events accepted per second (4 API processes) | about 990 |
| Response time at up to 900 events/s | under 6 ms for 95% of requests |
| Lost events after a crash | none in the crash tests |
| Memory used when many people log in at once | cut from 806 MB to 106 MB |
How these were measured, and what went wrong along the way, is in the engineering notes.
| Repository | What it holds |
|---|---|
ferrum-webhook-gateway |
the API people send events to |
ferrum-webhook-worker |
the program that delivers them and retries |
infra |
one-command local setup, Kubernetes files, load tests |
| this one | the documentation |
One database and one Redis, no backups, no encryption between the parts, and the Kubernetes packaging (Helm) has been checked but never installed on a real cluster. Details in docs/architecture.md.
MIT licensed.