All Questions
Tagged with spring-cloud-gateway spring-cloud-netflix
23
questions
0
votes
0
answers
68
views
Spring Cloud Gateway Programmatic Routing Issue
I'm using Spring Cloud Gateway 2023.0.0 for implementing some routing programmatically. To start with, here is my RouteLocator bean configuration:
@Bean
public RouteLocator routeLocator(...
0
votes
1
answer
53
views
Spring Cloud API Gateway routing does not work using NetFlix Eureka Registry
I'm trying to create a custom route on the gateway, to have control over which microservices the gateway will be able to distribute and it doesn't work.
In this process I use the Registry Eureka, ...
0
votes
2
answers
863
views
spring-cloud-starter-gateway dependency issue
ERROR:
org.springframework.cloud:spring-cloud-starter-gateway:pom:4.0.0 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local ...
0
votes
1
answer
191
views
Is there is a way to register microservice with domain name to netflix eureka?
I am facing a problem with eureka configuration - is it possible to register app service in eureka by domain name like "https://www.google.com" (passed for example to properties via ENV ...
1
vote
0
answers
177
views
Declaring Routes in Code Using Only Zuul 2
I'm trying to declare routes in a Zuul 2 example project using code rather than a properties file. The example project was taken from here. I'd like to avoid using any Eureka, Spring, or Spring Cloud ...
1
vote
0
answers
835
views
Eureka server with Spring Cloud load balancer is not working with lb:instance name
We have implemented a micro service architecture having Eureka discovery server,spring cloud API gate way,Spring cloud config server and a microservice rest API.
These are working very well now.The ...
1
vote
0
answers
76
views
Do i need to discover gateway service in discovery server?
Do i need to discover Spring cloud gateway in Spring cloud service discovery eureka?
Should i request directly to api gateway and then api gateway will redirect to eureka and then to the next servic.
...
0
votes
1
answer
308
views
How to configure Spring Gateway for correct routing
I created a Spring Eureka Registry, Spring Gateway and a Customer-Servvice.
On my local machine, everything works fine. I open my Registry and see there something like.
host.docker.internal:customer-...
2
votes
0
answers
523
views
Can we configure spring cloud gateway and service discovery (eureka server) on same SpringBootApplication
I am trying to run Spring Cloud "Gateway" & "Eureka-Server" on the same @SpringBootApplication, below is my code :
Main Class:
@SpringBootApplication
@EnableEurekaServer
@...
2
votes
1
answer
934
views
Spring Cloud Gateway routes do not work and Hystrix Dashboard crashed loading
In a tutorial from youtube the author to use Spring Cloud Gateway, Hystrix, Netflix, and configure routes with application.yml, but when I try to send data from the endpoint I just hang on the Hystrix ...
0
votes
0
answers
63
views
Can we customize or configure RPC or method call in place of endpoint(URL) for Netflix Ribbon or Spring Cloud Gateway?
In my project requirement, We need to distribute the load between two different micro services but call of the two microservices are not based on the endpoint(URL) but it is calling via it's SDK-...
5
votes
3
answers
17k
views
No servers available for service: while routing in Netflix ribbon
I had below working code in spring boot 2.3.4
public Route.AsyncBuilder apply(PredicateSpec route) {
return route
.path("/api/external/**")
.filters(f -> f
...
2
votes
2
answers
3k
views
Spring Cloud Gateway & Netflix/Eureka - Invalid host lb://
I am getting into the Spring Cloud 2020.0.0 world.
I have a config server, gateway server, eureka server and the first microservice setup and deployed in a dev env where they can all talk to each ...
3
votes
1
answer
4k
views
Change Configuration from Ribbon to Spring Cloud Load Balancer in spring cloud gateway
I have below configuration for spring cloud gateway with ribbon
server:
port: 8080
spring:
cloud:
gateway:
routes:
- id: UserModule
uri: lb://load-balanced-service-...
1
vote
1
answer
4k
views
Spring Cloud Gateway - Simple Routing or fallback doesnt work
I am new to Spring cloud gateway implementation. Just by trying a simple tutorial the code doesnt seem to work. Please see the following steps and code which I have done.
Use spring initializer to ...