Skip to content

Pass xRoute Spec object instead of entire xRoute object using watchable  #1370

Closed

Description

@arkodg

Description:
The xRoutes are passed from the provider to the gateway-api layer using the watchable messaging system.

GatewayAPIResources watchable.Map[string, *gatewayapi.Resources]

Instead of passing the entire resources we can only pass the Spec which is the required for translation.

This should reduce memory consumption as well as improve caching hits, since any field related to time that is part of the meta resource or status will not affect the object comparison and will reduce object churn in the system

Relates to #1365

Activity

  1. added
    kind/enhancement
    area/message-service
    on Apr 27, 2023
  2. added this to the 0.5.0-rc1 milestone on Apr 27, 2023
  3. haq204 commented on Apr 27, 2023

    @haq204
    Contributor
  4. arkodg commented on Apr 27, 2023

    @arkodg
    ContributorAuthor

    We use metadata.name on some resources for xDS names https://github.com/envoyproxy/gateway/blob/main/internal/xds/translator/route.go#L23

    good point, we'll then need to find a way to only share the Namespace, Name and Spec

  5. added
    help wanted
    on Apr 27, 2023
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

    area/message-servicearea/performancehelp wantedkind/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions