Workers are the fastest-adopted runtime in Kestrel history
Background workers launched six weeks ago. They are now running in more than ten thousand projects, faster than any runtime we have shipped.
What they're used for
Sending email after a checkout, without holding the response
Re-indexing search after a content change
Running evaluation suites for model prompts overnight
import { worker } from "@kestrel/workers";
export default worker("reindex", async (job) => {
const doc = await job.data<{ id: string }>();
await search.index(doc.id);
});