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

How service registry and discovery?

Today, three basic approaches are prevalent for service registry and discovery:

  • The first rudimentary and preliminary approach is using existing DNS infrastructure. A well deployed DNS would be highly available and distributed. Examples of this approach include httpd, confd, systemd, and so on. In this approach, standard DNS libraries are used as registrar clients. Each microservice entry receives an entry in a DNS zone file and does a DNS lookup to connect to or locate a microservice. Another approach is using proxies such as NGINX, which periodically poll DNS for service discovery. The advantage of this approach includes being language agnostic: it works with any language with minimal or zero changes. ...

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