Handling Temporal large payloads with External Storage
When a workflow passes files, generated reports or large API responses between activities, it can run into Temporal's payload size limits. Temporal External Storage addresses this by offloading the payload to a store such as Amazon S3 and passing only a small reference token through the Event History, a design known as the claim check pattern. The workflow and activities carry the reference, and the worker fetches the actual bytes when it needs them. Temporal warns when a single payload reaches 256 KB and fails at 2 MB by default, according to its self-hosted defaults, so the threshold you care about is the one that applies to your largest realistic input, including serialization overhead.
Before you commit, confirm two things with your team. First, the External Storage APIs may change before General Availability, so plan for an upgrade step in your SDK and worker versions and pin them deliberately. Second, the external store becomes part of your durability and recovery design. A workflow replay that cannot read a referenced object will fail, so the bucket's retention, versioning, encryption, IAM access and region placement must match the retention your workflow history depends on. Ask who owns the bucket lifecycle rules and confirm they never delete objects that running workflows still reference.
Offloading is often the wrong first fix. If the payload is large because a workflow carries whole documents, a better design usually passes an identifier, stores the data in your system of record and has activities fetch only the fields they need. Redesign first when the data is also needed by queries or search, when it changes during the run, or when it contains sensitive content that should be encrypted with your own payload codec. Use External Storage when the payload is genuinely opaque, immutable and produced by one step for another.
Which storage and payload approach fits your workflow
Temporal gives you several ways to handle data that is too large for a single Workflow or Activity payload. Each one moves the size problem to a different place: the Event History, an object store, your own database, or the shape of the Workflow itself. Compare them against your payload sizes, the systems you already operate, and how much of the stack you are willing to put in front of an early-maturity feature.
Inline payloads under the default limits
Pass the data directly as Workflow or Activity arguments and results. This adds nothing to operate, and the data is stored in the Event History with the rest of the execution. Temporal warns at 256 KB and errors at 2 MB for a single payload by default, so this only works while payloads stay well below those values. Check the largest payload your Workflows actually produce, including results that grow over time, and watch the history size of long-running executions, since every payload is copied into it.
Self-hosted defaultsExternal Storage with S3
Offload the large payload to an object store such as Amazon S3 and pass a small reference token through the Event History, following the claim check pattern. The Workflow code stays the same from the caller's view, but workers now need network access and credentials for the bucket, and the bucket becomes part of your recovery plan. Confirm the current API status before you build on it, because Temporal External Storage's APIs may change before General Availability.
External Storage docsS3-compatible store you operate
Use a self-hosted S3-compatible store in place of Amazon S3 when data must stay in your infrastructure. The MinIO community server is AGPLv3, its public repositories are archived, and its last tagged community release is RELEASE.2025-10-15T17-29-55Z. Ask whether the license obligations fit your distribution model, who patches the server, and whether you need SLA-backed support. Test the object store's availability, since a missing object will fail the Workflow that depends on it.
MinIO READMEYour own database with a key
Store the record in a database you already run, such as PostgreSQL, and pass only its key through the Workflow. This keeps the data under the same backup, access and audit controls as your application data, and you control the schema and retention. The trade-off is that the Activity reading the record now depends on your database, and you must handle the case where the row changes or is deleted between steps. This approach relies on your own design, not a Temporal feature, so the Temporal team does not maintain its failure behavior.
Splitting work into smaller Activities
Redesign the Workflow so that each Activity handles a bounded slice of the data, for example one page of records or one file, and returns a summary rather than the full result. Each Activity result stays small, and retries and timeouts apply per slice. The cost is more Activities and more history events, and you must decide how partial results are combined and where the full output is stored if it is still needed later. This option is often the lowest-risk path when the data is only large because of how it is batched.
Choosing the storage backend for offloaded payloads
When the Temporal workers and services already run in an AWS account, Amazon S3 is the most direct backend for External Storage. Workers write each large payload to a bucket and store only a small reference in the Event History, so the bucket becomes part of the workflow's execution path. Treat it as a production dependency, with the same ownership, monitoring and recovery expectations as the Temporal Service itself.
- Availability and region: Confirm the bucket region matches the worker region to limit latency and cross-region data transfer, and decide how a regional outage would affect running workflows.
- Encryption: Confirm server-side encryption settings and whether your key policy must use customer-managed keys in AWS KMS.
- Access control: Scope the worker IAM role to the specific bucket and prefix, and deny public access at the account and bucket level.
- Retention and lifecycle: Define how long offloaded payloads must exist, and align lifecycle rules with the namespace retention period so references never point to deleted objects.
- Support: Your AWS support plan and internal runbooks cover the bucket, so no separate vendor contract is needed.
Before committing, ask your security and compliance teams to review the bucket policy, encryption configuration and logging against your own control requirements.
Where data must stay in your own data centers, an S3-compatible object store you operate can serve as the backend. The Temporal side of the design stays the same: the SDK writes payloads through External Storage and the history holds references. The choice of product, its license and its support model deserve more scrutiny than the Temporal configuration itself.
- Maintenance status: Check the project's repository status and release channel before selecting it. Confirm whether security fixes are still published for the version you would deploy.
- Licensing: Review the license terms with your legal team, especially for network-served software and any commercial use.
- Support model: Confirm in writing who answers production incidents, with what response expectations, and who patches the software.
- Durability and encryption: Confirm erasure coding or replication, encryption at rest and in transit, and how keys are managed.
- Operations: Plan monitoring, capacity growth, backup of the storage system itself, and the upgrade path for the object store.
MinIO illustrates the risk. Its community repositories on GitHub are archived and read-only, and the community edition is distributed as source code only under the GNU AGPL v3.0, with support described as best effort. Its README points commercial users to its AIStor editions. Validate the AGPLv3 obligations, the support terms and the update plan with your counsel and vendor before you choose it. Evaluate any other S3-compatible product with the same questions.
On an air-gapped network, the storage backend must run entirely inside the isolated environment, and every component must be installable from media that your team can verify. Temporal, its database, the object store and the container images all need an internal path for installation and patching. The payload store is also a place where sensitive business data will sit, so its access and audit design matters as much as its capacity.
- Installation media: Confirm how the object store, its dependencies and any container images are transferred, scanned and approved for import.
- Encryption and keys: Confirm where keys are generated and stored, since no external key service may be reachable.
- Access control: Confirm that worker identities are issued internally and that bucket access is limited to the Temporal worker roles.
- Patching: Plan how security updates reach a network with no internet access, and how long that cycle takes in your change process.
- Support: Confirm whether the vendor or integrator can support disconnected installations and on-site response.
For the community MinIO edition, the source-only distribution means your team would build and maintain every artifact internally. Check that this matches your build capacity and the AGPLv3 terms before relying on it.
Setting up External Storage step by step
This sequence takes a self-hosted Temporal cluster from an unverified External Storage idea to a tested setup in which large payloads are offloaded to object storage and only small references travel through Event History.
Confirm version support in the official docs
Before any build work, the platform team checks the External Storage documentation for the Temporal Server version and each SDK version they plan to run, and records which combinations the docs describe. External Storage is a pre-release feature whose APIs may change before General Availability, so the team also notes which parts of the design depend on APIs that could move. The output is a short compatibility record that names the server, SDK and storage target, approved by the platform and application owners.
Create a least-privilege bucket
The cloud or storage team creates a dedicated bucket for externalized payloads, separate from application and backup buckets. Access is granted to a single service identity with permission to write, read and delete objects under the bucket or a defined prefix, and nothing else. Lifecycle rules are set to expire objects only after the longest workflow run that could still reference them, which the team confirms against its retention settings. The output is a bucket policy and lifecycle configuration that a second engineer has reviewed.
Confirm object storage choice and its licensing
If the team plans to use MinIO or another self-hosted S3-compatible store, it checks the current maintenance status, license terms and support model before wiring it in, since the upstream community repositories are archived and the community server is under AGPLv3. Procurement and legal confirm whether the chosen license and support level fit the organization. The output is a documented storage decision that names the supported edition, the support path and who owns patching.
Implement the storage driver in each worker
Application engineers add the External Storage driver to every worker process that runs workflows or activities, using the SDK configuration for the chosen driver and a size threshold they set deliberately below the default warning point of 256 KB. Credentials are supplied through the platform's secret mechanism rather than code. Every worker image that can read or write a payload must carry the same driver configuration, so no worker sees a reference it cannot resolve. The output is a merged change that builds and starts in a development environment.
Test round trips at and above thresholds
The team runs a test workflow that passes payloads just below the chosen threshold, exactly at it, and above it, including payloads near the 2 MB default error limit. For each size they confirm that the stored object appears in the bucket, that the workflow receives the original content, and that only a reference appears in Event History. They also test a payload that the driver cannot write, such as a missing permission, to see how the failure surfaces. The output is a test log showing each size, the expected object and the observed result.
Verify history size and failure behavior in a non-production namespace
In a dedicated non-production namespace, the team runs a load pattern that resembles the expected payload mix and watches event history size, worker memory and storage request counts. They also simulate a storage outage and a deleted object to confirm how retries behave and whether the workflow fails clearly. Results are compared with the design assumptions, and any gap sends the team back to the threshold or payload design. The output is a signed test report that the application owner and platform owner both accept before any production namespace is configured.
Decide whether redesign is the better fix
For any payload type that still runs close to the limits after testing, the team reviews whether passing identifiers, storing the data in its own system and loading it in an activity would be simpler and easier to operate than External Storage. This review uses the test results and the team's ownership of the storage path. The output is a recorded decision for each payload type, so the External Storage design is only kept where it is the simplest option that passes testing.
How payloads and references move between workers, history and storage
The flow starts when the Workflow Worker or Activity Worker serializes a payload that exceeds the size limit. The payload is written to the external bucket, and only a small reference token travels through the Event History on the Temporal Server. The Activity Worker then resolves the token by reading the object back from the bucket. Check that both workers can reach and authorize the bucket, and that the trust boundary around the bucket and server matches your data handling rules.
Large payloads go to the bucket, and only reference tokens pass through Event History.
Securing offloaded payloads and their storage
Once payloads leave Temporal's history, the bucket becomes part of your workflow data path and needs the same controls as the service itself. The cards below cover the storage layer, the access model, payload encryption, retention and the Temporal server controls that must be enabled first.
Encryption at rest and in transit
Offloaded payloads may hold customer or business data, so the bucket needs server-side encryption at rest and TLS for every write and read from workers. Confirm the encryption options your object store supports, who holds the keys, and whether key rotation is handled by your key management service. Check that workers refuse plaintext connections to the endpoint.
IAM scoped per namespace or workflow type
Grant each Temporal namespace or workflow type its own bucket, prefix or role so a worker in one domain cannot read another domain's payloads. Illustrative example: a payments namespace writes only under its own prefix. Test the policy with a denied read from the wrong role before go-live.
Payload encryption through custom codecs
Encrypting payloads with a custom codec before they reach External Storage keeps the stored objects unreadable to the storage provider and to anyone with bucket access alone. Decide where the keys live, how codec keys rotate, and how the codec server serves the Web UI without exposing plaintext. Verify that the object contents are ciphertext after a test run.
Security docsRetention aligned with history retention
Offloaded objects must not outlive the workflow histories that reference them, or they become orphaned data that still needs protection. Set a bucket lifecycle rule that matches the namespace retention period, and confirm how deletion of a workflow history affects its references. Document who approves any longer retention for compliance reasons.
Server controls that gate access
Self-hosted Temporal supports mTLS with separate internode and frontend settings, a ClaimMapper that maps JWT or certificate claims to namespace roles, and an Authorizer plugin. If no Authorizer is configured, the default noopAuthorizer allows every API request with no authentication or access control, so enable these before any worker connects.
Security docsAudit logging of bucket and API access
Enable object store access logs and retain them outside the bucket so reads and writes of offloaded payloads can be traced to a role and a workflow. Pair these with Temporal's own audit trail of namespace operations. Confirm log retention, who can read the logs, and how alerts fire on unexpected deletes or cross-namespace reads.
When to redesign payloads instead of offloading them
Before you configure External Storage, ask whether the large data needs to travel through Workflow history at all. Many oversized payloads are better handled by passing an identifier, such as an object key, a database primary key or a document ID, and fetching the data inside an Activity. The Activity reads the record when it runs, so the Event History carries a short string instead of the content. Splitting one large batch into smaller Activities or child Workflows also keeps each payload under the default warning at 256 KB and error at 2 MB described in the Temporal self-hosted defaults. Where the data already lives in a system of record, keeping it there and passing a key is usually the simplest design.
Decide by looking at how the data is used. If a workflow reads a payload once, an identifier fetched by an Activity is often enough. If many workflows reference the same data, a shared store with its own access controls, versioning and retention is a better home than copies inside each execution's history. External Storage suits payloads that must be passed between steps, are needed for replay decisions and cannot be re-fetched reliably. Ask your team how often each payload is read, how many executions point to it, and whether the source can change while a Workflow is running, because a changed source can make the reference point to different content than the one the Workflow started with.
Treat the pre-release status as a production decision. The External Storage APIs may change before General Availability, so a feature that works today could require code changes during an upgrade. If your compliance or change-control process requires a stable interface, a redesign with identifiers and Activities avoids that dependency. If you still choose External Storage, confirm the current status with Temporal, pin your SDK and server versions, and test a full upgrade cycle with real payload sizes before go-live.
Questions teams ask before External Storage work
What drives the cost of building an External Storage driver?
The cost is driven mainly by the number of payload paths that need offloading and by how much custom code the storage driver needs. Each path that carries large data, such as workflow inputs, activity results or signal payloads, must be found, tested and checked for reference handling. Costs recur through storage capacity, retention rules and the operation of the object store, which the client pays for in its own infrastructure. Ask for a quote that separates the driver build, the storage setup, the test plan and any security review, and that states which parts are one-time and which recur. Confirm with Temporal how the current driver interface is documented, since the External Storage APIs may change before General Availability.
How long does a pilot take, and what sets that time?
The pilot length depends on how many payload types are in scope, whether the object store already exists, and how fast the team can get approvals for a new data path. A narrow pilot covers one workflow type, one object store and a load test that proves the reference token survives retries and replays. Teams with an existing S3-compatible store and a clear access model usually move faster than teams that must first build storage. No duration is given here because none is supplied; ask for a timeline in the written scope and confirm the assumptions behind it.
What skills and people does the work need from our team?
The work needs engineers who know the Temporal SDK in the language the workers use, someone who administers the object store and its access policies, and a security reviewer who can check encryption, key handling and access to the stored objects. The SDK engineers handle the codec and driver code and the replay tests. The storage admin owns buckets, lifecycle rules and credentials. Security reviews the path from the workflow payload to the object and the audit trail. Name these owners before the pilot starts, because gaps in any one of them usually stop the work.
Can our in-house team build External Storage without a partner?
An in-house team can build it if it already has the SDK, storage and security skills and enough time to test replay and failure cases. The hardest parts are not the upload call but ensuring that a reference is always retrievable, that deleted or expired objects produce clear errors, and that the workflow code stays deterministic. A partner is most useful when the team lacks one of those skills or needs a fixed-scope pilot with written deliverables. DeployOpen plans, implements and tests self-hosted platforms in the client's own infrastructure, so the decision usually comes down to which skills are already in place.
Is External Storage safe to use in production today?
Treat it as a pre-release feature for now. Temporal documents that its APIs may change before General Availability, so a production design must be able to absorb API changes during upgrades. Before relying on it, confirm with Temporal the current status, the supported SDK versions and the compatibility guidance for your server version. Then run a pilot that tests replay, retries, object deletion and server upgrades in a non-production namespace.
When should we redesign the payload instead of storing it externally?
Redesign the payload when the data can be passed as an identifier and fetched by the activity itself, or when the workflow only needs a summary. Keeping large documents out of workflow history is usually simpler to operate than adding an external store. Check the default limits first: Temporal warns at 256 KB and errors at 2 MB for a single payload by default. Payloads near those limits in a few places often need a redesign, while data that is large in every execution may justify External Storage.
What should we check on the object store before choosing it?
Check the license, maintenance status and support model before you choose the object store, because these affect the long-term cost and risk. For example, the minio/minio project's README says the repository is no longer maintained, and its community edition is AGPLv3 with support through GitHub and Slack only. Confirm which edition you would run, whether it receives security fixes, and who supports it. Also confirm that the store supports encryption, access policies and audit logging that your security review requires.
How DeployOpen scopes External Storage work
External Storage work turns on two questions: how large your payloads really are and whether the workflow design needs them at all. DeployOpen answers both before any storage is built, then carries the same scope through implementation, testing and operations so each step is agreed in writing.
Payload size review
DeployOpen inventories the Activity inputs, Workflow inputs and results, and Signal and Update payloads that move through each Workflow Task Queue, and compares them with the default warning and error thresholds. The output is a list of payloads that are close to the limit, growing, or unbounded. Ask for this inventory to be part of the written scope, because it decides whether External Storage is needed for a few payloads or for most of the traffic.
- Default error limit
- 2 MB
Workflow design review
Before adding a storage path, DeployOpen checks whether the payload can be shortened, split, or passed by identifier, for example by sending a record key and letting the Activity read the current record. Large payloads often hide a design that keeps too much state in Workflow history. Confirm which alternative your team will accept before the build starts, because this review may remove the need for External Storage entirely.
Fixed scope in writing
Scope, deliverables and timelines are agreed in writing before work starts. The scope should name the payload types covered, the storage target, the codec or serializer changes, the test cases and the handover items. Most engagements are fixed-scope, and a quote follows from that written scope, so ask for each item to be listed explicitly rather than described as general support.
Storage path in your infrastructure
DeployOpen implements the storage path in the cloud accounts, data centers or air-gapped networks you control, including the bucket or object store, access policy and the Worker configuration that writes and reads references. Credentials for the store should be scoped to the payload prefix and kept out of Workflow code. Confirm which object store your security team has approved before design begins.
Encryption and access controls
Externally stored payloads are only as protected as the store that holds them, so the scope should cover encryption at rest, access logging and who may read objects. If payloads are also encrypted through a custom codec, DeployOpen checks that the codec and storage layers do not conflict. Confirm key ownership and rotation with your security team before build, since these decisions are hard to change once data is stored.
Testing and operations handover
DeployOpen tests the write and read path, failure handling when the store is unavailable, and replay behavior after code changes, then documents operations: object retention, cleanup of orphaned objects, monitoring and the runbook for payload errors. Retention rules should be agreed with the data owner, because objects outlive the Workflow executions that reference them. Ask for the retention and cleanup decisions to appear in the handover documents.

