---
title: "Worker Affinity with Task Queues"
url: https://daily.dev/posts/worker-affinity-with-task-queues-chjzgkgj1
source_url: https://temporal.io/blog/task-queue-worker-affinity
type: article
source: "Temporal"
published: 2026-08-06T10:37:26.533Z
updated: 2026-08-06T10:40:37.269Z
tags: ["workflow-orchestration"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Worker Affinity with Task Queues

**[Temporal](https://daily.dev/sources/temporal)** · 1 min read · 0 upvotes · 0 comments

## Summary

When multiple Activities in a Temporal workflow need to share resources like ML models, file caches, or database connections, routing them all to the same Worker avoids redundant overhead. The pattern works by having each Worker poll both a shared Task Queue and a unique per-Worker Task Queue. The Workflow first calls an Activity on the shared queue to discover a Worker's unique queue name, then routes all subsequent Activities to that specific queue, ensuring data locality throughout the workflow execution.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://temporal.io/blog/task-queue-worker-affinity>

## Similar posts on daily.dev

- [Route Specialized Workloads with Task Queues](https://daily.dev/posts/route-specialized-workloads-with-task-queues-ioubha5ec) · Temporal · 0 upvotes · 0 comments
- [Rate-Limit Downstream APIs with Task Queues](https://daily.dev/posts/rate-limit-downstream-apis-with-task-queues-at2xe4f9g) · Temporal · 0 upvotes · 0 comments
- [Task Queue Priority and Fairness: Your Task Queue, your way](https://daily.dev/posts/task-queue-priority-and-fairness-your-task-queue-your-way-oi28edbnk) · Temporal · 0 upvotes · 0 comments

---

Tags: [#workflow-orchestration](https://daily.dev/tags/workflow-orchestration)

[View this post on daily.dev](https://daily.dev/posts/worker-affinity-with-task-queues-chjzgkgj1)
