Skip to content

Backend deduplication #86

Closed
Closed

Description

@aram356

Description

Derived-name backend reuse is implemented on main. Fastly backend construction derives a name from scheme, host and effective port, registers it with the Fastly backend builder, and reuses the name when the runtime reports an existing registration. This satisfies the original named-backend deduplication task.

Steps to reproduce

  1. Inspect how ensure_backend derives backend_name from its URI.
  2. Follow the builder result into the NameInUse/already-in-use branch.
  3. Confirm repeated targets return the existing name instead of requiring a second named registration.

Expected behavior

Repeated creation of the same named backend reuses its existing registration.

Impact

The requested reuse primitive already exists; future configurable backend identities belong to the remaining backend-options work.

Proposed fix

Close as completed using the current source and merged PR #35. Keep any new option-aware identity or conflicting-registration changes scoped to the evolving outbound contract.

Done when

  • Backend names are deterministically derived from target identity.
  • Existing named registrations are reused by the proxy backend path.

Related

Parent #79; Fastly factory #83; caller options #80–#82. PR #35 provides the implemented name/reuse behavior. PR #275 is subsequent related work.

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