# Ensure Activity execution on the same Worker

DevFeed: [Ensure Activity execution on the same Worker](<https://devfeed.tech/articles/ensure-activity-execution-on-the-same-worker-35996.md>)

Original publisher: [Read original article](<https://temporal.io/blog/task-queue-worker-affinity>)

Author: Cecil Phillip

Published: 2026-05-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Temporal Blog](<https://devfeed.tech/sources/temporal-blog.md>)

Topics: [execution](<https://devfeed.tech/topics/execution.md>), [Workers](<https://devfeed.tech/topics/workers.md>), [file](<https://devfeed.tech/topics/file.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [connection-pooling](<https://devfeed.tech/tags/connection-pooling.md>), [data](<https://devfeed.tech/tags/data.md>), [execution](<https://devfeed.tech/tags/execution.md>), [files](<https://devfeed.tech/tags/files.md>), [queues](<https://devfeed.tech/tags/queues.md>), [temporal-concepts](<https://devfeed.tech/tags/temporal-concepts.md>), [worker](<https://devfeed.tech/tags/worker.md>)

## AI overview

This article explains how Temporal Worker-specific Task Queues can keep all Activities in a workflow on the same Worker, preserving data locality for file processing, ML model caching, and database connection pooling.

## Source excerpt

Stop re-downloading multi-GB files between Activities. Use Worker-specific Task Queues in Temporal to keep all Activities on the same Worker.