TOOL WIKI · RUNTIME & DEPLOYMENT
Inngest
Provides event-driven workflows and execution building blocks for applications.
Jump to a section 10 sections
EXAMPLE USE CASE
Handle an order-request event as a named workflow step
A developer needs a concrete execution environment for a background task, browser operation or service, with a visible terminal result.
- Input
- asg/order.requested carrying an order ID and a registered function.
- Expected output
- A completed lookup step returning packed/not_found in the dev UI.
- Success check: The dev UI discovers read-order and records a completed run with packed.
- Try a failure: An invalid event shape must not silently become a successful business result.
Example scope: Actual event/function integration using the local development service.
Set the allowed runtime, network access, credentials, and maximum duration.
inputTo 02 · InngestBackground agent tasks that need managed steps and event handling. Define the boundary between retriable work and committed effects.
processTo 03 · Worker environmentRun only the workload and dependencies required for the task.
Check permissions at each resource service and reconcile uncertain writes.
Inspect files, records, and task-level acceptance criteria.
outputTo 06 · LifecycleRetain required artifacts, release temporary compute, and expire task credentials.
Result or stopping point
Background agent tasks that need managed steps and event handling. Define the boundary between retriable work and committed effects.
When to consider it
- Background agent tasks that need managed steps and event handling.
A design decision to make
- Define the boundary between retriable work and committed effects.
Prerequisites and setup
- Node.js 22+. This uses the current two-argument createFunction API with triggers inside the configuration.
npm init -y
npm install inngest express
export INNGEST_DEV=1Try a small integration
server.mjs
import express from 'express';
import { Inngest } from 'inngest';
import { serve } from 'inngest/express';
const client=new Inngest({id:'asg-demo'});
const readOrder=client.createFunction({id:'read-order',triggers:{event:'asg/order.requested'}},
async({event,step})=>await step.run('lookup',()=>({
order_id:event.data.order_id,status:event.data.order_id==='A104'?'packed':'not_found'
})));
const app=express();
app.use(express.json());
app.use('/api/inngest',serve({client,functions:[readOrder]}));
app.listen(3000,'127.0.0.1');event.json
{"name":"asg/order.requested","data":{"order_id":"A104"}}Run and check the result
# Terminal 1
node server.mjs
# Terminal 2
npx --ignore-scripts=false inngest-cli@latest dev -u http://localhost:3000/api/inngest
# Terminal 3
curl --fail http://localhost:8288/e/devkey -H "Content-Type: application/json" -d @event.json- The dev UI discovers read-order and records a completed run with packed.
- step.run stores a step result; repeated event delivery and a retried external side effect still need deliberate idempotency.
Common failures
- A worker accepting a job does not establish completion. Inspect the task result, failure and retry history.
- Do not expose a development control plane or unauthenticated execution endpoint publicly.
Production decisions
- Use bounded CPU/memory/time, restricted filesystem mounts and network access, short-lived secrets and per-user isolation.
- Preserve run/operation identifiers, cancellation and terminal states. Retryable remote writes need provider idempotency or reconciliation.
Keep exploring
Explore the same layer
Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.