Skip to content

HTTPRoute - routing to a large number of urls? #1292

Answered by pleshakov
meastp asked this question in Q&A
Discussion options

You must be logged in to vote

My first concern would be if nginx/gateway api has limits on the number of routes/matches/paths?

Gateway API has limits:

For your case, it should be possible to start with a single rule like below:

  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /coffee/1
    - path:
        type: PathPrefix
        value: /coffee/2
    - path:
        type: PathPrefix
        value: /coffee/3
    backendRefs:
    - name: coffee-new

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@meastp
Comment options

@pleshakov
Comment options

Answer selected by meastp
@meastp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants