Document the Temporal large-payload claim-check codec

Closed
DO
4mo ago
+92-1

Under Temporal, ctx.deps is serialized into every activity dispatch. On a 200 KB deps object a 20-wide tool fan-out produces 4,013,160 bytes in one workflow-task completion — over the 4 MiB gRPC limit — and every copy is written to workflow history permanently.

A user-supplied payload_codec is already preserved by TemporalDurability (durable_exec/temporal/__init__.py, _data_converter), so a claim-check codec solves the size ceiling today. Nothing documented it, so nobody finds it.

This adds the recipe to docs/durable_execution/temporal.md: the problem, a worked codec example, and its limits — notably that it does not dedup N identical payloads within a single fan-out.

Context: #6976. That issue asks for deps-by-reference as first-class API; this is the part that works today and is worth documenting regardless of what we decide there.

Checklist

  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • No breaking changes in accordance with the version policy.
  • PR title is fit for the release changelog.