<@ULVA73B9P> what is the difference between worker...
# ask-marvin
i
@Marvin what is the difference between worker and workers pool?
m
Ah, the age-old question: one worker versus a pool of them. Let me get the specifics for you from the Prefect docs. Before that, can you let me know which version of Prefect you are using?
i
@Marvin prefect 3.0.2
m
Got it! ### Worker A worker in Prefect 3.0 is essentially a service that polls for flow runs scheduled in a specific work pool and executes them. Each worker is associated with a specific type of execution environment (like subprocesses, Kubernetes jobs, Docker containers, etc.). The worker handles the provisioning of the flow run's infrastructure. Reference: Prefect Workers ### Work Pool A work pool is a broader concept that seems to function similarly to the "pub/sub topics" in message-based systems. A work pool coordinates multiple workers and the deployments they serve, managing things like the number of concurrent flow runs. Essentially, the pool acts as an intermediary channel through which you can manage and distribute flow runs to various workers. Reference: Prefect Work Pools