Skip to content

Commit 89da3f5

Browse files
committed
Simplify
1 parent ae0a0a1 commit 89da3f5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/encyclopedia/activities/activities.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ back to the Temporal Service as part of the [ActivityTaskCompleted](/references/
4343
Event is added to the Workflow Execution's Event History. For other Activity-related Events, see
4444
[Activity Events](/workflow-execution/event#activity-events).
4545

46-
If you only want to execute one Activity Function, then you don't need to use a Workflow: you can use your SDK Client to invoke it directly as a [Standalone Activity](/standalone-activity).
47-
This will have lower latency and will result in fewer [Billable Actions](/cloud/actions#actions-in-workflows) in Temporal Cloud.
46+
If you only want to execute one Activity Function, then you don't need to use a Workflow: you can
47+
use your SDK Client to invoke it directly as a [Standalone Activity](/standalone-activity).

docs/encyclopedia/activities/standalone-activity.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ tags:
1919

2020
An [Activity Execution](/activity-execution) that is started directly by a [Client](/encyclopedia/temporal-sdks#temporal-client), without using a Workflow, is called a Standalone Activity.
2121

22-
If you need to orchestrate multiple Activity Executions, then you should use a Workflow.
23-
But if you just need to execute a single Activity, then Standalone Activity will have lower latency and will result in fewer [Billable Actions](/cloud/actions) in Temporal Cloud.
22+
If you need to orchestrate multiple Activity Executions, then you should use a Workflow. But if you
23+
just need to execute a single Activity, then you can use a Standalone Activity. This will result in
24+
fewer [Billable Actions](/cloud/actions#actions-in-workflows) in Temporal Cloud. If your Activity
25+
Execution is short-lived, then you will also notice lower latency, since there are fewer worker
26+
round-trips than when executing the Activity in a Workflow.
2427

25-
Standalone Activities support the same retry policies and timeouts as Workflow Activities, and you write your Activity Functions in the same way for both.
26-
In fact, an Activity Function can be executed both as a Standalone Activity and as a Workflow Activity.
28+
Standalone Activities support the same retry policies and timeouts as Workflow Activities, and you
29+
write your Activity Functions in the same way for both. In fact, an Activity Function can be
30+
executed both as a Standalone Activity and as a Workflow Activity.

0 commit comments

Comments
 (0)