Temporal: API Design โ Workflows, Activities & Queries
Docs-backedThe SDK defines the API surface: Workflows (deterministic orchestration logic), Activities (non-deterministic side effects), Signals (external input to running workflows), Queries (read-only access to workflow state), and Updates (synchronized mutations). Workflow execution starts via the SDK client: client.workflow.start(workflowFunction, {args, taskQueue, workflowId}). The taskQueue connects workflows to workers. Workers poll task queues and execute workflow/activity code. The HTTP API at the Temporal Server provides workflow listing, description, termination, and signal delivery for administrative operations. Search attributes enable querying workflows by custom metadata. Visibility APIs list and filter running/completed workflows. The programming model is powerful: workflows can sleep for days, wait for signals, spawn child workflows, and compose activities โ all with durable execution guarantees.