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

Have Routes Support Multiple URIs

Open
#114 40 comments 101 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

It would be nice if a route could be configured to make requests to multiple URIs and then return the results to a specified controller to aggregate the responses.

spring:
  application:
    name: gateway
  cloud:
    gateway:
      routes:
      # =====================================
      - id: greeting
        uris: 
        - lb://greeting
        - lb://name
        predicates:
        - Path=/greeting/**
        controller: blah

The controller, blah in this case, would take the result of calling the greeting and name services and return a response for the client.

For example if the greeting service returned Hello and the name service returned Ryan. The controller would return Hello Ryan.

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

Start by reviewing the route configuration shown in the issue and how requests are dispatched to a specified controller. The issue names no source files or tests, so the relevant route and controller entry points must be located first. Done means a route can call multiple configured URIs and return an aggregated response such as “Hello Ryan”.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.