Skip to main content

What is a Worker?

In day-to-day conversations, the term Worker is used to denote a Worker Process.

Component diagram of a Worker Process and the Temporal Server

Component diagram of a Worker Process and the Temporal Server

A Worker Process is responsible for polling a Task Queue, dequeueing a Task, executing your code in response to a Task, and responding to the Temporal Server with the results.

More formally, a Worker Process is any process that implements the Task Queue Protocol and the Task Execution Protocol:

Temporal application developers are responsible for developing and operating Worker Processes. An application can have as many Worker Processes as needed to meet scalability and reliability requirements.

A Worker Process can be both a Workflow Worker Process and an Activity Worker Process.

Entity relationship diagram (meta model) of Worker Processes, Task Queues, and Tasks

Entity relationship diagram (meta model) of Worker Processes, Task Queues, and Tasks