spring-cloud / spring-cloud/spring-cloud-gateway

Enhancement: Add support for nested routing

Open
#265 5 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.9k
Forks
3.5k
Avg merge
20h 57m
Merged PRs (30d)
8

Description

We are working on a project, where we need to make the gateway to support multiple tenant. Currently we are planning to use multiple host in CF to determine the tenant. Now we have multiple route under each tenant and they have collision in URL prefix.

It is difficult or almost impossible to have unique route for entire router. I know if we include Host prefix in each route, its fine, and that is what we are doing right now.

But it would be cool and easy if support for nested routing is possible. Something like when a route matches, it cam resolve to a nested route locator, which may actually resolved to a URL with scheme like http or lb.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. First review the gateway's existing route matching and route locator design, then clarify how a matched route should select a nested locator and resolve http or lb destinations; done should include defined multi-tenant collision behavior and tests for nested routing.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.