# Difference Between Archival and Inline Archival

**URL:** <https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487>\
**Category:** Community Support\
**Tags:** go-sdk, archival\
**Created:** [November 28, 2021, 10:12am UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487 "2021-11-28T10:12:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [November 28, 2021, 10:12am UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/1 "2021-11-28T10:12:51Z")

</div>

In the service/worker/archiver/client.go,  
I see that there is an archival method.  
In addition to that, there is also archiveVisibilityInline, archiveHistoryInline.

When I tried to backtrace the inline methods, it took me to the recordWorkflowClosed method.

Questions

1. What’s the difference between Archival and Inline Archival and when exactly are the two called.
2. I found that, as soon as the workflow is closed, the visibility data is archived the next moment. Even though the retention period is 1 day. Want to understand, when exactly does the archival really happen? Is it right after the workflow or a few hours before the retention period comes to an end?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [November 28, 2021, 3:43pm UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/2 "2021-11-28T15:43:19Z")

</div>

1. For history archival, Inline flag is set if workflow history size is less than TimerProcessorHistoryArchivalSizeLimit (default 5mb, can set in dynamicconfig). @Vitaly may have more info on this.

2. History archival is done after the retention period. Visibility archival (when enabled) happens right after a running workflow closes. This is a current limitation that imo should be addressed in future archival updates. Archived data should be checked/accessed after the retention period only in order to have both history and visibility data available.

---

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [November 28, 2021, 3:58pm UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/3 "2021-11-28T15:58:19Z")

</div>

Thanks, Tihomir,  
on the same topic, what is the purpose of sendArchivalSignal?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [November 28, 2021, 4:15pm UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/4 "2021-11-28T16:15:12Z")

</div>

My understanding is that it’s the signal sent to archival workflow that includes the [ArchiveRequest](https://github.com/temporalio/temporal/blob/master/service/worker/archiver/client.go#L65) information so it can start archiving a particular wf. @Vitaly if you have more info on this please add 🙂

---

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [January 7, 2022, 7:54am UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/5 "2022-01-07T07:54:31Z")

</div>

> [@tihomir](#):
>
> TimerProcessorHistoryArchivalSizeLimit (default 5mb, can set in dynamicconfig)

What are the complications if I increase this to 10mb?

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [January 7, 2022, 5:11pm UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/6 "2022-01-07T17:11:23Z")

</div>

> [@Vikas\_NS](#):
>
> What are the complications if I increase this to 10mb?

Checking with the server team to get their recommendations on this question. Tried locally and seems it did not cause any issues, but best for you to test as well. Please report any issues that you might find.

---

<div class="post-metadata">

**Author:** ![Vikas\_NS](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/vikas_ns/32/1210_2.png) [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Post date:** [January 8, 2022, 4:35am UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/7 "2022-01-08T04:35:52Z")

</div>

tihomir,

does this inline archival start after the workflow has been marked as completed ?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [January 8, 2022, 2:05pm UTC](https://community.temporal.io/t/difference-between-archival-and-inline-archival/3487/8 "2022-01-08T14:05:03Z")

</div>

It starts after the retention period for a completed workflow.

Increasing the inline archival limit might put memory pressure on the history service and cause transfer queue processing delays. So you are on your own when changing it. Please test rigorously before deploying any such changes to production.
