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
20
votes
1 answer

How to route in between microservices using Spring Cloud & Netflix OSS

During our development of microservices using Spring Cloud, we started out using Zuul as a proxy for any connection from the outside to microservices, and for any microservice needing to contact another microservice. After some time we made the…
19
votes
1 answer

Netflix-Zuul vs Mashape-Kong

Both Zuul and kong serve as a good API gateway layer in a microservices architecture. What are some important differences between these two?
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
19
votes
3 answers

NetflixOSS Zuul Filter for rejecting requests

I am trying to use a ZuulFilter in a simple spring-cloud-Netflix Api gateway (reverse proxy) in order to authenticate requests against a custom authentication provider (via Rest call). The Filter should reject unauthorized requests with a 401 and…
Thomas Jäckle
  • 1,123
  • 2
  • 7
  • 21
17
votes
5 answers

Using Spring Boot, how do I see debug info for Zuul?

I am trying to use Zuul within my Spring Boot project. application.properties server.context-path=/${spring.application.name} zuul.routes.engine.path=/api/engine/** zuul.routes.engine.url=${engine.url} GET requests are working; however, Zuul is not…
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
17
votes
1 answer

Spring Cloud: Canary Deployments with Zuul

I am getting started with Spring Cloud using Eureka and Zuul and had some questions around structuring blue/green and Canary deployments. So far, I have the basics worked out and have Eureka, Zuul, and a config server working as expected. What I am…
17
votes
7 answers

Spring Cloud - Zuul Proxy is producing a No 'Access-Control-Allow-Origin' ajax response

Startup Appplication: @SpringBootApplication @EnableZuulProxy public class ZuulServer { public static void main(String[] args) { new SpringApplicationBuilder(ZuulServer.class).web(true).run(args); } } My YAML file is like…
Given
  • 585
  • 1
  • 7
  • 14
16
votes
1 answer

Load balancer does not have available server for client: meeting

While I am trying to reach the service meeting via Zuul gateway, Zuul is unable to forward the request to the respective service. The following errors are what I am facing: nettflix.zuul.exception.ZuulException: Forwarding error Caused by:…
15
votes
1 answer

Auto-Proxy services with Consul Service Discovery

I am attempting to move from Eureka to Consul for service discovery and am having an issue - my gateway service registers and my customer-service registers, but the gateway service will not route requests to the customer-service automatically. …
Gandalf
  • 9,648
  • 8
  • 53
  • 88
14
votes
2 answers

Netflix Zuul/Ribbon/Eureka vs AWS ELB/ALB & ECS

I understand from the documentation with the use of Netflix Zuul & Eureka (maybe Ribbon too) you can build an active load balancer. I have always used AWS ELB, ALB (ECS for container management) with R53. Apart from the vendor portability, Is there…
14
votes
1 answer

Zuul Deployment in Kubernetes

This is my first time trying to deploy a microservices architecture into Kubernetes. At the beginning, I was considering to use Ambassador as my API Gateway. I also have an authentication service which validates users and generates a JWT token,…
Carlos Gomez
  • 275
  • 5
  • 13
14
votes
8 answers

How to get response body in Zuul post filter?

How it is possible to read a response body while using Zuul as a proxy in post filter? I am trying to call the code like this: @Component public class PostFilter extends ZuulFilter { private static final Logger log =…
Dariusz Mydlarz
  • 2,940
  • 6
  • 31
  • 59
13
votes
4 answers

Spring Cloud Zuul does not forward cookies

I am facing a problem with spring cloud Zuul proxy. I hace two microservices configured, up and running. I have a cookie in my web browser and I am using Zuul as an API Gateway, When I hit Zuul to call my Backend, Zuul is not forwarding my cookie to…
13
votes
1 answer

Multiple Zuul routes to one service

Most of the examples that I see are one route definition to one service. so this sort of thing: zuul: routes: myserver: path: /mypath/** Lets say that I want to route several routes to one service so in effect it would be like…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
12
votes
1 answer

Spring Cloud Zuul/Eureka dynamic route

I am using spring cloud eureka and spring cloud zuul proxy and i was wondering if there is any way to add dymanic zuul routes when a new service is register in eureka server or the only way to add a route is edit the application.yml file and restart…
alfespa17
  • 335
  • 1
  • 3
  • 12
12
votes
2 answers

Spring Boot + Cloud | Zuul Proxy | Integration testing

When working with Spring Boot to build micro-services its very easy to write extensive and very readable integration tests and mock remote service requests with MockRestServiceServer. Is there a way to use similar approach to perform additional…
1
2
3
80 81