Skip to main content

Webhook Handler

Process incoming webhooks from external services:

Scheduled Jobs

Execute ensembles on a schedule using cron triggers:

Daily Report Generation

Multiple Schedules

Run different tasks on different schedules:
Configure in wrangler.toml:
Note: Conductor automatically discovers cron triggers from ensemble configurations. The wrangler.toml crons must match your ensemble trigger configurations.

Database Triggers

React to database changes:

On User Signup

Trigger from signup handler:

E-Commerce Order Processing

Complete event-driven order workflow with error handling:

Inventory Monitoring

Scheduled check for low stock with alerts:

Order Cancellation Workflow

Handle order cancellations with refunds and inventory restoration:

Real-Time User Activity Tracking

Track user actions and trigger personalized responses:

Queue-Based Processing

Process tasks asynchronously using Cloudflare Queues:

Best Practices

1. Use Queues for Async Work

2. Implement Idempotency

3. Add Retry Logic

4. Monitor Event Processing

Next Steps

API Orchestration

Webhook and API patterns

Triggers

Cron and delayed execution

Queues Configuration

Set up Cloudflare Queues

Flow Control

Robust error handling