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
110
votes
2 answers

How is Spring Cloud Gateway different from Zuul?

I have been using Zuul as the edge service and API Gateway. Recently I have noticed that Spring Cloud Platform release Spring Cloud Gateway. What is the difference between the two gateways? Why is the Zuul not extended to support the functionalities…
52
votes
3 answers

Spring Boot - Different systems( eureka , zuul, ribbon, nginx,) used for what?

I have been working with spring and now would like to learn spring boot and microservices. I understand what microservice is all about and how it works. While going through docs i came across many things used to develop microservices along with…
Vipin CP
  • 3,642
  • 3
  • 33
  • 55
51
votes
8 answers

Zuul timing out in long-ish requests

I am using a front end Spring Cloud application (micro service) acting as a Zuul proxy (@EnableZuulProxy) to route requests from an external source to other internal micro services written using spring cloud (spring boot). The Zuul server is…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
39
votes
2 answers

Zuul - Api Gateway Authentication

I want to introduce Zuul through Spring Cloud as an API Gateway in front of a few services. I have some design doubts around Authentication. The Authentication would be handled by Spring Security, which comes before Zuul in the servlet filter…
Adrian Ivan
  • 545
  • 1
  • 5
  • 11
29
votes
2 answers

Spring OAuth Authorization Server behind Spring Cloud Zuul Proxy

I am currently developing a application based on a micro service architecture. We use a API-Gateway implemented using Spring Cloud Netfix's Zuul Server to route the requests to our micro services. To realize single sign on for all our services I am…
Tobias Kremer
  • 1,531
  • 2
  • 15
  • 21
28
votes
1 answer

Zuul and Ribbon integration

I have trouble understanding the connection between Zuul and Ribbon. I think I got Zuul clear. It's a reverse proxy I can contact to reach one of my several instances of a service. It will pick the right server using a round-robin algorithm or…
VanesBee
  • 616
  • 1
  • 6
  • 18
28
votes
3 answers

Using Zuul as an authentication gateway

Background I want to implement the design presented in this article. It can be summarised by the diagram below: The client first authenticate with the IDP (OpenID Connect/OAuth2) The IDP returns an access token (opaque token with no user info) The…
phoenix7360
  • 2,807
  • 6
  • 30
  • 41
25
votes
1 answer

Spring Cloud + Zuul + JWT for Value/Reference Tokens

After reading the article How To Control User Identity Within Microservices I've been trying to implement such access control scheme (Value and Reference Tokens), but after going through multiple other topics and examples in GitHub related to…
Tom Kelly
  • 259
  • 3
  • 4
25
votes
7 answers

Customizing Zuul Exception

I have a scenario in Zuul where the service that the URL is routed too might be down . So the reponse body gets thrown with 500 HTTP Status and ZuulException in the JSON body response. { "timestamp": 1459973637928, "status": 500, "error":…
Grinish Nepal
  • 3,037
  • 3
  • 30
  • 49
23
votes
2 answers

org.eclipse.jetty.io.EofException: Early EOF thrown while uploading large file

While I am uploading large file(about 50 MB), I am getting org.eclipse.jetty.io.EofException: Early EOF excception. My jetty server version is "9.2.9.v20150224".Below is stack trace org.eclipse.jetty.io.EofException: Early EOF at…
RIPAN
  • 3,326
  • 4
  • 17
  • 28
21
votes
1 answer

Is there a difference between API gateway pattern and BFF?

My understanding is that API gateway pattern is like a proxy to all microservices. So client calls the API gateway which takes care of further routing. BFF is a specific case of API gateway pattern where we have a routing mechanism for each type of…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
21
votes
6 answers

Zuul Proxy not able to route, resulting in com.netflix.zuul.exception.ZuulException: Forwarding error

I have simple services as: transactions-core-service and transactions-api-service. transactions-api-service invokes transactions-core-service to return a list of transactions. transactions-api-service is enabled with hystrix command. Both are…
user5921551
  • 311
  • 1
  • 2
  • 4
21
votes
2 answers

Use Eureka despite having random external port of docker containers

I am writing an application that is composed of a few spring boot based microservices with a zuul based reverse proxy in the front- It works when I start the services on my machine, but for server rollout I'd like to use docker for the services, but…
Patrick Cornelissen
  • 7,968
  • 6
  • 48
  • 70
20
votes
5 answers

NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath() in latest spring-cloud-starter-netflix-zuul

My application use spring-boot version 2.5.0 and spring-cloud-starter-netflix-zuul 2.2.8.RELEASE With latest spring-boot version 2.5.0, getErrorPath() API is removed from ErrorController, but latest spring-cloud-starter-netflix-zuul 2.2.8.RELEASE…
Khoa Phung
  • 491
  • 3
  • 9
  • 20
20
votes
3 answers

Can Zuul Edge Server be used without Eureka / Ribbon

We have an infrastructure with service discovery and load balancing (i.e. server side with STM and weblogic cluster). Now we are in the process of refactoring into micro-services. We would need an API gateway which does basic routing to other…
Fahim Farook
  • 1,482
  • 2
  • 14
  • 38
1
2 3
80 81