Hi all! I'm a backend developer (mostly Go and Node.js) and I recently built my first serious Rust project: HookForge, a webhook delivery service.
What it does:
- Apps register endpoints and send events through an Axum API
- Deliveries are stored in Postgres; 4 workers claim them with FOR UPDATE SKIP LOCKED
- Each delivery is signed with HMAC-SHA256 (timestamp + body)
- Failures retry with exponential backoff and are marked dead after 5 attempts
- Claims are 60-second leases, and a reaper task returns stuck deliveries to the queue
- Per-endpoint rate limiting and graceful shutdown via a tokio watch channel
I'd love feedback on:
- Is my async and error-handling style idiomatic? (I mostly use expect() and eprintln!)
- Is a Mutex a reasonable rate limiter here, or is there a better pattern?
- Anything in the worker/claim logic that looks wrong or risky?
Thanks for reading!
3 posts - 3 participants
