O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Part A – Zuul and Polyglot Environment

Let's have a look at the following steps:

  1. First off we need is a gateway (Chapter 5, Understanding API Gateway) and service registry and discovery (Chapter 6, Service Registry and Discovery) solution. We will leverage Zuul and Eureka from the Netflix OSS.
  2. First off we need a Eureka server, copy the source from Chapter-6/ eureka/eureka-server to a new folder or follow the steps from Chapter 6Service Registry and Discovery, in the Eureka section to create a new server which would run on JVM.
  3. Doing nothing fancy, just add annotations @EnableEurekaServer and @SpringBootApplication at relevant places—DemoServiceDiscoveryApplication.java.
  1. Configure properties like port number, health check in the application.properties ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required