Skip to content

Allow to pass port to uri value and replace Eureka port with this value #1474

Open
@mbronshteyn

Description

@mbronshteyn

Allow to pass port as configuration parameter. For example uri would look like this:

	.route(p -> p
			.path("/sentence-service/**")
                        .filters( f-> f
				.rewritePath(
                        		"/sentence-service/(?<segment>.*)", "/$\\{segment}")
                                .retry( 3 )
						)
						.uri( "lb://SENTENCE:8081" )
				)
                .build();

In this case Gateway will fetch path info from Eureka, but will use port 8081

Extend ReactiveLoadBalancerClientFilter class. Check if port is passed. If so, replace port from Eureka with the one passed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions