What is a stateless worker?

Definition

A stateless worker obtains durable inputs from external storage and may build temporary local state for speed. If the worker disappears, another worker can reconstruct the same state and continue the task.

Repository hosting can use workers that replay a log to materialize Git state on demand. This reduces permanent replica requirements but needs efficient recovery, caching and deterministic assignment.

Frequently asked questions

Does a stateless worker store nothing locally?

It may use caches and temporary files, but correctness does not depend on that local state surviving worker replacement.

Why are stateless workers easier to scale?

They can be added, removed or reassigned without migrating unique durable state from a permanent primary.

Videos explaining stateless worker