Webhook event dispatcher
Published: 22.08.2023 12:00
WD
Generated premium cover
Webhook event dispatcher
Python
An internal Django service that fans out domain events to subscribed external endpoints with delivery guarantees and retry logic.
Decoupled three downstream services and removed all polling queries.
Problem
Services that needed to react to business events had to poll the main database, creating coupling and load.
Solution
Built a webhook registry in PostgreSQL, a dispatch worker with exponential retries, and a subscriber management API.