what is the difference between netflix zuul server and netflix eureka server?

user2396010 picture user2396010 · Jul 28, 2017 · Viewed 11.1k times · Source

i have created two java spring-boot micro services they are 1) producer 2) consumer and i have used spring eureka server for service registration and discovery . it worked fine . then what is the use of Netflix Zuul.

Answer

Apollo picture Apollo · Jul 28, 2017

Let's suppose you have 20 services to which user can interact to, and of course we are not going to expose each and every services publicly because that will be madness (because all services will have different ports and context), so the best approach will be to use an API gateway which will act as single entry point access to our application (developed in micro service pattern) and that is where Zuul comes into picture. Zuul act as a reverse proxy to all your micro-services running behind it and is capable of following

  • Authentication

  • Dynamic Routing

  • Service Migration

  • Load Shedding

  • Security

  • Static Response handling

  • Active/Active traffic management

You can go through documentation here