Goal
Understand when to move backend work into Durable Jobs and what StackShift guarantees after a job starts.Prerequisites
- A StackShift API key
- Node.js or another backend runtime that can expose an HTTP handler
Workflow
What Durable Jobs is
StackShift Durable Jobs is a reliable execution engine for backend work. It runs jobs outside the request path and keeps enough durable state to retry, resume, and finish safely. Use it for work that should not disappear when a request times out, a process restarts, or an external system is slow. Start the work once. StackShift makes sure it completes safely.Short example
Start a job from an API route, webhook, or backend service. StackShift stores the run and invokes your handler.Mental model
- Jobs execute work.
- Steps break work into durable units.
- State remembers progress across retries and resumes.
- Events let a job pause without running compute, then resume when the right signal arrives.
- Idempotency keys make duplicate starts safe.
Expected result
You can explain Durable Jobs as one product concept: jobs execute work, steps divide it, state remembers progress, and events resume paused runs.
Related guides
Quick Start
Install the SDK, initialize a client, enqueue a job, add a worker handler, and inspect the run.
Idempotency
Use idempotency keys so duplicate requests do not create duplicate work.
Event Waiting + Correlation
Pause a workflow until the right external event arrives, then resume the correct run.