Skip to content

Align large-payload samples to 256 KiB and fix Durable Functions host.json keys#343

Merged
torosent merged 3 commits into
mainfrom
torosent-largepayload-threshold-256kib
Jul 1, 2026
Merged

Align large-payload samples to 256 KiB and fix Durable Functions host.json keys#343
torosent merged 3 commits into
mainfrom
torosent-largepayload-threshold-256kib

Conversation

@torosent

@torosent torosent commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Aligns the .NET large-payload samples to the SDK's new default threshold of 262,144 bytes (256 KiB) and fixes host.json key bugs in the Durable Functions fan-out/fan-in sample and the migrate-backend-to-dts skill.

Related: the .NET SDK default is changing from 900,000 to 262,144 bytes in microsoft/durabletask-dotnet#755.

torosent and others added 3 commits July 1, 2026 10:07
…lt 256 KiB

- Rename the sample env var EXTERNALIZE_THRESHOLD_BYTES to THRESHOLD_BYTES.
- Change the default offload threshold from 900,000 to 262,144 bytes (256 KiB)
  to match the SDK default in Microsoft.DurableTask.Extensions.AzureBlobPayloads.
- Correct a misleading README note: THRESHOLD_BYTES is sample-only glue mapped
  to the SDK's LargePayloadStorageOptions.ThresholdBytes (the option that must
  stay <= 1 MiB); the SDK extension does not read the env var itself.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…set 256 KiB

- LargePayloadFanOutFanIn used unbound host.json keys (largePayloadStorageEnabled /
  largePayloadStorageThresholdBytes), so payload offload was effectively disabled.
  Rename to the bound payloadStorageEnabled / payloadStorageThresholdBytes, per
  HostJsonOptions in WebJobs.Extensions.DurableTask.AzureManaged.
- Set both Durable Functions samples' threshold to 262,144 bytes (256 KiB) to
  match the SDK default.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Rename largePayloadStorage* to the bound payloadStorageEnabled /
payloadStorageThresholdBytes keys (per HostJsonOptions in
WebJobs.Extensions.DurableTask.AzureManaged) so the migration guidance
configures keys the azureManaged provider actually reads. Demo value
(10240) unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@torosent torosent merged commit 8844132 into main Jul 1, 2026
13 checks passed
@torosent torosent deleted the torosent-largepayload-threshold-256kib branch July 1, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants