# Are the activities strictly sequential?

**URL:** <https://community.temporal.io/t/are-the-activities-strictly-sequential/5854>\
**Category:** Community Support\
**Tags:** go-sdk, general-impl\
**Created:** [August 31, 2022, 8:46am UTC](https://community.temporal.io/t/are-the-activities-strictly-sequential/5854 "2022-08-31T08:46:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tempuser1](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@tempuser1](https://community.temporal.io/u/tempuser1)\
**Post date:** [August 31, 2022, 8:46am UTC](https://community.temporal.io/t/are-the-activities-strictly-sequential/5854/1 "2022-08-31T08:46:25Z")

</div>

It may be that first comes Activity2 then Activity?

```auto
	workflow.ExecuteActivity(ctx, activities.Activity, name).Get(ctx, &result)
	workflow.ExecuteActivity(ctx, activities.Activity2, name).Get(ctx, &result)

```

```auto
//register workflows & activities
	w.RegisterWorkflow(workflows.Workflow)
	w.RegisterActivity(activities.Activity)
	w.RegisterActivity(activities.Activity2)

```

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [August 31, 2022, 9:33am UTC](https://community.temporal.io/t/are-the-activities-strictly-sequential/5854/2 "2022-08-31T09:33:01Z")

</div>

Hi @tempuser1

As per documentation: `Get blocks until the future is ready. When ready it either returns non nil error or assigns result value to the provided pointer.`

so the second line of your code (ExecuteActivity → Activity2 ) is not going to be executed until the invocation to the first activity (ExecuteActivity → Activity ) has finished.

Are you experiencing any issues?

---

<div class="post-metadata">

**Author:** ![tempuser1](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@tempuser1](https://community.temporal.io/u/tempuser1)\
**Post date:** [August 31, 2022, 10:46am UTC](https://community.temporal.io/t/are-the-activities-strictly-sequential/5854/3 "2022-08-31T10:46:35Z")

</div>

so far everything is going well,

I’m studying the documentation .and decided to clarify this point, I was confused by the fact that the workers work asynchronously, for some reason I thought that activities can also work like this

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [August 31, 2022, 11:19am UTC](https://community.temporal.io/t/are-the-activities-strictly-sequential/5854/4 "2022-08-31T11:19:12Z")

</div>

@tempuser1

Activities are executed by workers. When you invoke `ExecuteActivity` from your workflow code, the SDK will send a command to the server which will create a ScheduleActivityTask, if there is a worker available (for the activityTaskQueue) it will pick up the task and execute it.

The first part of this video mentions it, [The 4 Types of Timeouts in Temporal - YouTube](https://www.youtube.com/watch?v=JK7WLK3ZSu8) I would recommend you to see the full video.

So ExecuteActivity is an asynchronous invocation, calling Get will block your code until the activity is completed/failed.  
This repository is a good place to start, [GitHub - temporalio/samples-go: Temporal Go SDK samples](https://github.com/temporalio/samples-go), just in case you have not heard about it.
