Prompt
I’m building a developer tool and need push delivery infrastructure
Latest observation
Got it — if you’re building a developer tool and need push delivery infrastructure, the main decision is whether you want to build it yourself, use a managed service, or do a hybrid.
First: what “push delivery” usually means
For a developer tool, push delivery often includes one or more of:
- Webhooks to customer endpoints
- In-app realtime updates over WebSockets / SSE
- Email / SMS / mobile push notifications
- Job/event delivery to downstream systems
- Reliable background dispatch with retries, signing, and observability
Core infrastructure pieces you’ll likely need
A solid push system usually has:
-
Event ingestion
- Accept events from your app or internal services
- Normalize payloads and validate schema
-
Queue / buffer
- Decouple producers from delivery
- Handles bursts and backpressure
- Examples: SQS, Kafka, RabbitMQ, Pub/Sub
-
Delivery workers
- Send payloads to destinations
- Support retries with exponential backoff
- Handle timeouts, idempotency, deduplication
-
Retry + dead-letter handling
- Persist failed deliveries
- Move poison messages to DLQ
- Allow replay
-
Signing / security
- HMAC signatures for webhooks
- Endpoint verification
- Secret rotation
-
Observability
- Delivery logs
- Metrics: success rate, latency, retry counts
- Tracing / alerting
-
Customer controls
- Per-endpoint enable/disable
- Rate limiting
- Delivery history
- Webhook test/send test event
Common architecture options
Option A: Managed webhook delivery platform
Best if you want to ship fast.
Examples:
- Svix
- Hookdeck
- Courier for notification orchestration
- Twilio / OneSignal for mobile push/email/SMS depending on channel
Pros:
- Fast to integrate
- Built-in retries, signing, logs
- Less ops burden
Cons:
- Vendor dependency
- Less control over delivery semantics
- Cost can grow with volume
Option B: Build your own
Best if delivery is a core product differentiator or you need full control.
Typical stack:
- API service writes events to DB/queue
- Workers consume and deliver
- Redis/Postgres/Kafka/SQS depending on scale
- Webhook logs stored for customer visibility
Pros:
- Full control
- Custom semantics
- Potentially lower cost at scale
Cons:
- More engineering/ops
- You own reliability, security, and support burden
Option C: Hybrid
Best for many teams.
Example:
- Use a managed service for webhooks
- Build internal event pipeline and UI on top
- Use specialized services for SMS/email/mobile push
If you mean webhook delivery specifically
A webhook delivery system should usually include:
- Endpoint registration
- Event subscription model
- Signed requests
- Retry schedule, e.g.:
- immediate retry
- 1 min
- 5 min
- 30 min
- 2 hrs
- Rate limiting per tenant/endpoint
- Idempotency keys
- Automatic disabling after repeated failures
- Replay from dashboard/API
- Delivery logs with response status and latency
Recommended starting architecture
If you’re early-stage, a practical setup is:
- Postgres for source-of-truth configuration and delivery logs
- Queue: SQS, RabbitMQ, or Redis Queue
- Workers for delivery
- Managed email/SMS/mobile push if needed
- Webhook signing using HMAC SHA-256
- Admin UI for retries, logs, and endpoint health
If scale or reliability becomes critical, consider Kafka/PubSub later.
Questions to narrow it down
If you want, I can recommend a concrete architecture if you tell me:
-
What kind of push delivery do you need?
- webhooks, realtime app updates, mobile push, email/SMS, all of the above
-
What scale are you expecting?
- events per second, number of tenants, number of endpoints
-
What’s your stack?
- Node, Python, Go, Java, etc.
-
Do you want to build or buy?
- managed service vs custom infrastructure
If you answer those, I can sketch a specific system design and suggest a stack.