Content Deep Dive
What is waitUntil (Vercel, Cloudflare) and when should I use it?
Blog post from Inngest
Post Details
Company
Date Published
Author
Dan Farrelly
Word Count
1,254
Language
English
Hacker News Points
3
Summary
Vercel's waitUntil utility method is now available for all serverless functions, allowing developers to ensure that an async function completes before the serverless function shuts down. This tool is useful when performing non-critical asynchronous work in the background without blocking the user's response. However, it does not guarantee success and should not be used for critical business logic. It is also not designed for running background jobs, which require a system that handles queueing, retries, and logs failures. Inngest can handle background jobs reliably but may have networking issues when used with waitUntil.