Worker
The Worker is a server component that processes all runnable tasks and polling triggers.
A Worker receives and processes tasks from the Executor and polling triggers from the Scheduler. Given that tasks and polling triggers can be virtually anything (heavy computations, simple API calls, etc.), the Worker is essentially a Thread Pool where you can configure the number of threads you need.
You can scale Workers as necessary and have many instances on multiple servers, each with its own Thread Pool.
As the worker executes the tasks and the polling triggers, it will need access to any external services they use (database, REST services, message broker, etc.). Workers are the only server components that need access to external services.
Was this page helpful?