Skip to content

Stream Fastly standard responses progressively #109

Description

@aram356

Description

Make the standard Fastly dispatch path deliver response chunks progressively instead of constructing a complete host-side body before sending.

Main uses Fastly SDK 0.13, so the original SDK 0.11 migration prerequisite is obsolete. The remaining behavior gap is real: from_core_response drains the entire stream before returning. Custom lifecycle callbacks already permit application-managed streaming.

Steps to reproduce

  1. Inspect Fastly SDK version and the standard response converter.
  2. Compare standard dispatch buffering with the documented custom streaming callback.

Expected behavior

Standard Fastly streaming responses can commit headers and deliver chunks before end-of-stream, with clear error and completion behavior.

Impact

Long-lived streams and first-byte latency require custom sender code today.

Proposed fix

Complete the adapter-owned progressive egress path in #275, retain compatibility guidance for custom callbacks, and verify native delivery behavior before acceptance.

Done when

  • A delayed/multi-chunk response emits its first chunk before the producer completes.
  • Backpressure, stream error, completion and cancellation behavior are covered at the native Fastly boundary.
  • Standard dispatch documentation no longer describes full buffering as the default streaming behavior.

Related

Activity

  1. changed the title [-]As a developer I want full streaming support on Fastly[/-] [+]Stream Fastly standard responses progressively[/+] on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions