Skip to main content
Sequences are ideal for orchestrating recurring system-level tasks, such as daily reports, database maintenance, or health checks.

Daily Metric Snapshots

This pattern allows you to take a “snapshot” of your key performance indicators (KPIs) every day at midnight and report them to your team.

Why this works

  1. Parallel Execution: snapshotRevenue and snapshotActiveUsers capture data simultaneously.
  2. Aggregation: notifySlack waits for both snapshots to finish successfully before posting a summary.
  3. Reliability: Partial failures stop the reporting step, ensuring you only report complete data.

Deploying this sequence

Define the full sequence in posthook.toml:

Periodic Health Checks

You can run distributed health checks every few minutes to verify system uptime.
All checks run in parallel, giving you a comprehensive snapshot of system health at that moment.