# When to Use a Workflow?

### To Ensure Eventual Consistency

Use a workflow in situations where a resource is maintained in both global and regional scopes and is associated
with distributed micro-transactions. A workflow helps to manage these complexities and ensures that the resource remains
consistent across different environments.

For a more detailed explanation, please refer to the document
on [how to execute transactions in a Database-per-service scenario](https://pingcap-cn.feishu.cn/wiki/McwuwjVeGiy1CRkKIpYcQwQQnwd).

### To Improve Responsiveness for End Users

When dealing with long-running operations, workflows can enhance user experience by allowing immediate responses in the
API handler. This approach offloads the processing to the workflow, ensuring that the user interface remains responsive
while the backend processes the request.
