Inngest
Open-source durable execution platform providing step-level retries, queuing, and observability for background tasks and AI workflows.
At a Glance & Reviews
Community Discussions (5)
- 工作流引擎对比:Inngest VS n8n VS Zeebe 2025-05-17 · 3 pts
- Show HN: Inngest 1.0 – Open-source durable workflows on every platform 2024-09-20 · 165 pts
- Inngest raises $3M seed to build the reliable workflow platform for every dev 2023-07-12 · 54 pts
- Show HN: Inngest – Developer platform for background jobs and workflows 2023-06-20 · 87 pts
About Inngest
Inngest is a durable execution platform that solves the problem of background tasks and multi-step workflows losing progress when a process is interrupted, a deployment restarts, or an external service becomes unstable. Traditional queues only deliver messages; retries, waits, and state persistence must be built separately. Instead, it lets developers split functions into steps, saving the result of each step so that a failure resumes from that step rather than rerunning the entire sequence.
Officially positioned as an open-source event-driven orchestration tool, it is first developed locally and then moved to the cloud for production, without requiring additional queue and worker-process infrastructure. Functions are written in existing application code and are invoked and driven forward by the platform through an API.
Its core concept follows a chain: a trigger starts a run, a run consists of several steps, and steps can wait between one another. The official concepts documentation lists four trigger types—events, schedules, HTTP requests, and direct invocation through an API. Step outputs are serialized and saved, a mechanism called memoization in the documentation, so completed steps return their saved results directly during later replays.
Step primitives are one of its more recognizable parts: step.run wraps code that calls an external API or writes to a database into a retryable step; step.sleep and step.sleepUntil pause a run for a period of time or until a given moment, without occupying a function process during the pause; and step.waitForEvent resumes only when a matching event arrives or the wait times out, making it suitable for workflows such as approvals and payment callbacks that must wait for an external action.
Composition primitives include step.invoke, which calls another function from within a function and waits for its result; step.sendEvent, which reliably emits a new event from inside a function to trigger other functions; parallel steps, which run mutually independent work concurrently before aggregating the results; defer, which starts new work as a separate run; group.experiment, which uses experimental grouping to compare the effects of different prompts, models, or code paths; and metadata capabilities that attach custom data to runs and steps.
Flow control is a set of configurations designed for multi-tenancy and external quotas. Concurrency control limits the number of steps actually executing at the same time, with waiting runs not consuming slots; throttling limits the rate at which new runs start per unit of time, with excess runs queued and waiting; and rate limiting likewise limits the start rate but directly skips excess triggers, making it suitable for scenarios where surplus work can be discarded. The three should not be mixed up—choosing the wrong one can discard tasks that should have been kept.
The official documentation also lists mechanisms such as batching, which merges multiple events into a single run; debouncing, which collapses a burst of dense triggers into one; priority, which lets urgent runs jump the queue; and singleton, which ensures that only one run with the same key runs at a time. These controls take effect in a fixed order during scheduling: rate limiting and batching first, then the run order is determined, and the step concurrency cap is applied at execution time.
Observability is included by default: every run has a trace showing whether each step is completed, waiting, or retrying. Combined with the local development server, developers can inspect events, run records, and logs in the interface, getting workflows working locally before moving them to the cloud.
Official limits worth noting are documented in the steps documentation: a single function is limited to 1,000 steps, a single step result to 4 MiB, and the entire state of a run to 32 MiB, including event data, step results, and function return values. Large results should be stored in external storage, with only references passed between steps; a single step is limited to 2 hours, and if the host platform's own timeout is shorter, the host's limit applies.
The documentation also specifically warns that steps do not guarantee an external action executes only once: if a provider has already received a request but the response is lost, the step may still retry the same action. Steps involving writes, payments, and messaging should therefore use idempotency keys to prevent duplicates—particularly important when integrating payment and notification workflows.
Sleep limits are tied to the plan: step.sleep and step.sleepUntil can theoretically wait up to one year, but cannot exceed the maximum total duration of a single run allowed by the plan—30 days on the Free tier, 90 days on the Pro tier, and 366 days on the Business tier. Workflows that need to wait for months should be matched against this limit when choosing a plan.
SDKs cover languages including TypeScript, Python, and Go. The Python package requires Python 3.10 or later and can be mounted on frameworks such as FastAPI, Flask, and Django to serve requests. The documentation also notes that a small number of features are currently available only in the TypeScript version, so the feature-support matrix should be checked before choosing a language.
To get started, install the package for the corresponding language in an existing project—run npm install inngest for a TypeScript project, or pip install inngest for a Python project—then create a client and functions. A function declares its trigger event and retry count through createFunction, wraps each step in the function body with a step method, and then mounts the service entry point onto the application's API path.
Local debugging requires starting the development server with the official command npx inngest-cli dev. Once started, it automatically discovers registered functions and provides a local service with traces, logs, and an interface. For cloud use, register an account and deploy the application to Vercel, Cloudflare, or any hosting environment that can provide an HTTP endpoint, where the platform executes it driven by events.
Scheduled jobs are one common use case: after rewriting existing scheduled tasks as functions, they can sleep, run in parallel, and retry inside the function. Data synchronization, periodic reports, and cleanup jobs can all use the same approach, without maintaining a separate scheduler.
Pricing is billed by execution count, which the official documentation defines as one count per function run or per individual step. A function containing five steps therefore counts as six executions when it runs through completely, so step counts must be included when estimating usage—estimating by trigger count alone is not enough.
The Free tier includes 50,000 executions per month, 5 concurrent steps, 5 seats, and 3 always-on workers, with serverless workers unlimited. The Pro tier starts at $99 per month and includes 1 million executions, with overages at $50 per 1 million executions; it includes 100 concurrent steps, with each additional 25 costing $25, 15 seats, with each additional seat at $10 per month, and 20 always-on workers.
The Business tier starts at $499 per month and includes 10 million executions, with overages at $25 per 1 million executions; it includes 500 concurrent steps, 30 seats, and 100 always-on workers. The Enterprise tier uses custom pricing and quotas, provides a dedicated support channel, and offers a HIPAA business associate agreement as an add-on in paid tiers.
It also offers separate pricing for sandbox compute, with the pricing page listing $0.0396 per vCPU per hour and $0.0108 per GB of memory per hour on a per-second basis. vCPUs can only be selected in sizes of 1, 2, 4, 8, or 16, while memory is combined in ratios of 1, 2, 4, or 8 GB per vCPU, with hourly prices tabulated by size. This portion is billed separately from execution-count charges.
One typical scenario is e-commerce and content-related background tasks: after an event triggers, image imports, file processing, and notifications are performed, with the API returning success first while the heavy work completes step by step in the background. A second scenario is approval and follow-up workflows requiring long waits, where waiting for events and sleeping suspend a workflow for hours or even days until a result arrives. A third is agent backends, where each step of multi-step model and tool calls retries independently, and flow control handles concurrency across tenants and rate limits from external models.
Compared to traditional queues that only handle delivery, the difference is that it directly manages the execution state of each step, with pausing, waiting for events, retries, and traces written in the same code and platform. Compared to state machines such as AWS Step Functions, the official documentation notes that the latter requires a dedicated description language to define workflows, while Inngest uses ordinary code plus step methods. Compared to orchestration systems that require self-provided worker processes, it follows a serverless approach, with functions remaining in the team's own application and being invoked, saving the operational burden of always-on processes—at the cost of execution counts accumulating with the number of steps, so the cost of high-frequency, fine-grained workflows should be calculated in advance.
Frequently Asked Questions
Is Inngest free?
Partly. Inngest has a free tier; higher limits or advanced features are paid. Check the official site for current plans and limits.