Explanation
Concepts, design decisions, and architecture behind Hook0. Read these to understand how and why things work the way they do.
Introduction
What is Hook0?
Core concepts and what Hook0 does.
Topics covered:
- The webhook reliability problem
- Hook0's approach to solving it
- Core concepts (Organizations, Applications, Events, Subscriptions)
- Key features and benefits
- When to use Hook0
Suggested reading order
Beginner path:
- What is Hook0? - Core concepts
- Hook0 Architecture - System overview
- Event Processing - How events flow
Advanced path: 4. Security Model - Security architecture
Architecture and design
System architecture
How Hook0's components fit together.
Topics covered:
- System architecture overview
- Component responsibilities (API server, workers, database)
- Event flow and lifecycle
- Scaling considerations
- Deployment patterns
Event processing
How events flow from creation to delivery.
Topics covered:
- Event lifecycle stages
- Queue management and priority handling
- Retry mechanisms and backoff strategies
- Dead letter queues and failure handling
- Performance characteristics
Security and reliability
Security model
Hook0's approach to security, authentication, and data protection.
Topics covered:
- Authentication system (Biscuit tokens for user sessions, Service tokens for programmatic access)
- Payload signing and verification
- Transport security (TLS)
- Authorization and access control
- Data privacy and compliance
Design philosophy
Reliability first
Every design decision prioritizes reliable delivery over raw performance.
- Events are persisted before acknowledgment
- Retries on a fixed schedule
- Circuit breakers protect downstream systems
- Delivery status tracked for every attempt
Operational simplicity
Easy to deploy, monitor, and maintain.
- Single binary, minimal dependencies
- Observability built in
- Clear error messages
- Sensible defaults with escape hatches
Developer experience
Webhooks that just work.
- Straightforward API
- Documentation with working examples
- Multiple SDKs
- Local development support
Mental models
Hook0 as a message broker
Hook0 makes sure your events reach their destinations, the same way a message broker delivers messages between systems.
Events vs. webhooks
- Events are things that happened in your system
- Webhooks are HTTP requests that deliver event notifications
- Hook0 turns events into reliable webhook deliveries
Subscriptions as routing rules
Subscriptions define which events go to which endpoints, with what delivery guarantees.
For implementation details, see Tutorials and How-to Guides. For specifications, see Reference.