AI Engineering
Learn LLMs, RAG, agents, secure tools, and production AI through practical insurance examples.
State machines, DAGs, and event-driven workflows
A state machine models valid states and transitions. A DAG, directed acyclic graph, models dependencies without loops. Event-driven workflows react to events such as document.uploaded or review.approved instead of doing all work inside one HTTP request.
Long-running workflows, retries, timeouts, and schedules
Long-running workflows persist progress while waiting for jobs, timers, or people. Retries repeat transiently failing work; timeouts cap waits; schedules start work at defined times. Durable waiting should not consume an open request or a sleeping application…
Idempotency, compensation, and human approvals
Idempotency makes repeating the same logical request avoid repeated effects. Compensation is a business action that offsets an earlier action when later steps fail. Human approvals are authenticated events permitting specific transitions.
Choosing orchestration tools
Workflow engines and job systems provide different guarantees for dispatch, persistence, recovery, waiting, and coordination. Temporal is a durable workflow platform; BullMQ is a Redis-backed job library; Inngest and Trigger.dev offer developer-oriented…
Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.