Async + Event-Driven
Building with events sometimes requires a different way to look at the problem & solution. These common patterns walk through what the solutions look like with or without using events.
Moving code out of the critical path into background jobs to keep API response times performant.
Run task periodically, as cron jobs, like weekly emails or daily backups.
Handle high throughput webhooks in a fault tolerant way.
Break complex code into reliable, independently ran steps.
Fan-out work to multiple functions using a single event.
Pause and wait until a specific time based off of data within an event.
Automatically cancel scheduled, paused, and waiting work using events.
Combine cron-jobs with event fan-out for auditable scheduling.