Questions tagged [netflix-zuul]

Zuul is an edge service that provides dynamic routing, monitoring, resiliency, security, and more.

Zuul is the front door for all requests from devices and web sites to the backend of the Netflix streaming application.

As an edge service application, Zuul is built to enable dynamic routing, monitoring, resiliency and security, and more. It also has the ability to route requests to multiple Amazon Auto Scaling Groups as appropriate.

Zuul uses a range of different types of filters that enables us to quickly and nimbly apply functionality to our edge service. These filters help us perform the following functions:

  • Authentication and Security - identifying authentication requirements for each resource and rejecting requests that do not satisfy them.
  • Insights and Monitoring - tracking meaningful data and statistics at the edge in order to give us an accurate view of production.
  • Dynamic Routing - dynamically routing requests to different backend clusters as needed.
  • Stress Testing - gradually increasing the traffic to a cluster in order to gauge performance.
  • Load Shedding - allocating capacity for each type of request and dropping requests that go over the limit.
  • Static Response handling - building some responses directly at the edge instead of forwarding them to an internal cluster
  • Multiregion Resiliency - routing requests across AWS regions in order to diversify our ELB usage and move our edge closer to our members

References:

1217 questions
8
votes
1 answer

How to get spring-cloud zuul to use a different circuit for different services

I'm attempting to use spring-cloud-starter-zuul. I have setup Eureka and registered a simple service I wrote as a Eureka client. I register two instances on two different hosts with two different application names so they are two different…
digitaljoel
  • 26,265
  • 15
  • 89
  • 115
7
votes
1 answer

Spring Boot and Zuul routes

There is a simple proxy: @EnableZuulProxy @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Bean public SimpleFilter…
7
votes
1 answer

Spring boot- Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead

I am building a spring boot microservices application but getting this error when I open in intellij idea. Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead. You attempted to replace a…
rimi reza duity
  • 103
  • 1
  • 6
7
votes
4 answers

UnknownHostException in kubernetes

Im using microservice in kubernete and docker and I got an UnknownHostException when Zuul (gateway) forward request data to service I can't ping to service container by pod name (but when i use docker swarm instead of Kubernetes, i can ping by host…
Kaijin Sabrac
  • 83
  • 1
  • 1
  • 8
7
votes
4 answers

com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

I am trying microservices with eureka and zuul. And there is a problem with all requests, which take more then 1 second. As I have understood, 1 second is default hystrix timeout, and for configuring timeouts in Zuul, I have to configure these…
Vadym
  • 436
  • 2
  • 5
  • 11
7
votes
3 answers

Delete zuul route dynamically without restarting the gateway

Hi I want to delete the zuul route which has been created dynamically. Im not using cloud server. Im able to add the routes using discoveryclientroutelocator. But I don't find an option to de-register the route added dynamically. This deletion…
Developer404
  • 5,716
  • 16
  • 64
  • 102
7
votes
3 answers

spring cloud gateway and eureka server

I have been trying to find a running example of spring cloud gateway integrated with eureka server and also with some Hystrix examples but I could't find so far. Are there any place where I could find it? I really would like to see spring cloud…
7
votes
1 answer

Authentication to access Spring boot Zuul Service routes

I have configured my micro services using Spring boot zuul and eureka services. Now I need to authenticate all routes/REST API calls. I mean, for all APIs client send one accessToken. On zuul service, before routing to the particular service, I…
Krish
  • 1,804
  • 7
  • 37
  • 65
7
votes
1 answer

Zuul - Single point of Failure

Zuul being used to work with Eureka/Edge Services stands out to be a single point of failure? Is there any way around it to make this scalable and resilient?
Divs
  • 1,578
  • 2
  • 24
  • 51
7
votes
1 answer

When to configure zuul routes

I am new to spring cloud and going through some examples and material available online to make myself comfortable. However, while reading about ZUUL, some sites configured the routes in ZUUL's application.yml and some other sites mentioned that the…
7
votes
2 answers

Data Aggregation in API Gateway - Zuul

I'm looking for a solution that would provide kind of data Aggregation in API Gateway. I am using spring cloud netflix zuul for API gateway. I created 3 micro services using spring boot - Catalog - All products DeviceInfo - a particular product…
Saurabh
  • 2,384
  • 6
  • 37
  • 52
7
votes
1 answer

Couldn't acquire semaphore - Zuul Configuration

After reading the documentation on Spring cloud Zuul I have understood that with SEMAPHORE isolation and max concurrent requests of around 2, Zuul server can easily handle about 5000 rps. With a value of around 2000 it's throwing the following…
Deepak
  • 71
  • 1
  • 3
7
votes
2 answers

Zuul reverse proxy with Keycloak server

I'm configuring a Spring Cloud (Angel.SR6) application using the Zuul reverse proxy utility, in order to hide the internal service ports. My zuul (edge) service is published in the 8765 port and my organizations service is in the 8083 one.…
Aritz
  • 30,971
  • 16
  • 136
  • 217
7
votes
0 answers

How to collect Metrics in Spring-Cloud Zuul

We have created our application with Spring-Cloud Eureka and Spring-Cloud Zuul with multiple core / support micro services registering to Eureka and accessed via Zuul, everything works fine. We wanted to collect metrics of the APIs that is accessed…
7
votes
1 answer

Creating custom Zuul filters

I want to implement custom filters for my Zuul proxy. Now, I know there has been a lot of talking about that subject here and I took a look at the answer provided, with the examples of filters and the Spring Cloud documentation, which I went through…
chesh
  • 742
  • 8
  • 22