Skip to content

store extension server resources centrally #10065

Closed

Description

@guydc

Description:

Currently, extension server resources that attach to xRoutes (Policies, Filters) may get stored per-route, due to:

  1. DeepCopy in route fan out:
    routeRoute := routeWithBackends.route.DeepCopy()
  2. DeepCopy performed by watchable in Pub/Sub between layers

These resources are immutable context that doesn't undergo any translation in EG. In some cases, extension resources can be referenced by multiple routes (trivially for policies, but also for route filters). Storing copies leads to increased memory use and translation latency (equality checks in pub/sub coalescing, etc.).

Consider storing extension server resources centrally to improve performance for environments with many shared extension resources. This might need to be an opt-in feature, as the current solution is optimal for the case where there is no sharing.

Activity

  1. self-assigned this
    on Sep 22, 2026
  2. zirain commented on Sep 22, 2026

    @zirain
    Member

    let me take a look on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions