Durable Execution
How many Activities should I use in my Temporal Workflow?

How many Activities should I use in my Temporal Workflow?

4/16/2025

What this post added

This post provides detailed guidance on when to split work into multiple Temporal Activities versus combining them. It categorizes these decisions into 'Necessity,' 'Practicality,' and 'Preference,' offering specific examples for each. Key recommendations include using separate Activities for operations requiring different task queues, retry policies, or timeout policies. It also emphasizes splitting Activities that involve multiple database transactions or state-changing calls to external services, aligning with the principle of one operation per Activity for better maintainability, observability, and reliability.

Read the original post ↗