Align large-payload samples to 256 KiB and fix Durable Functions host.json keys#343
Merged
Merged
Conversation
…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>
YunchuWang
approved these changes
Jul 1, 2026
This was referenced Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.