-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Hands-On Microservices with Kotlin
By :

A Cloud Gateway allows us to simplify how we can expose a microservice to be used by applications or to other microservices, which simplifies how we can perform load balancing between the instances and expose a clear mechanism to access them. Spring Cloud allows us to use Netflix Zuul to easily create a Gateway for our cloud microservices where we can define simple routes for accessing them.
Additionally, Zuul will use NetFlix Ribbon to perform load balancing and Hystrix to create circuit breakers, giving our Gateway a cloud-oriented architecture for our microservices.
In this section, we will create our Gateway and connect it to our microservices.
We can use Spring Initializr to create our Discovery Server by visiting https://start.spring.io/.
We have chosen to create a Maven Project
using Kotlin
and Spring Boot
2.0.0 M7
, we choose the Group to be com.microservices
and the Artifact
to be chapter06-gateway
. For Dependencies
, we have set Zuul
, Eureka Discovery
, and Config...