Rate-limit event delivery
There’s nothing worse (or better) than a sudden burst of traffic that brings your app to its knees. Sailhouse helps you rate-limit event delivery, so you can focus on building your app and not worrying if it will fall over.
await client.admin.registerPushSubscription(
"analysis.queued",
"process-document",
"https://example.com/webhook",
{
rate_limit: "100/h",
}
);
Inspect events on the fly
Things go wrong all the time, and Sailhouse helps you debug them quickly. You can inspect events in real-time, understand why things went wrong without adding any additional logging.
Trigger regular jobs with a cron
Be it an audit job, a daily sync, or a weekly report, Sailhouse makes it easy to schedule regular events with a cron.
await client.admin.registerCronJob(
"cron.audit",
"run-audit",
{
schedule: "@daily",
}
);