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

Timely health checks

 There are two approaches for performing timely health checks for discovery. One method states that services should send a message to a centralized discovery service, whereas another method has the discovery service sending requests to the service providers:

  • Service polls registrar: In this approach, a service provider actively sends messages at a predefined regular interval to the registrar discovery service. The discovery service keeps track of all the last time requests were received and considers a service provider dead if a certain time threshold has not been made.
  • Registrar polls service: This is the approach where a central discovery service sends requests to the service providers. However, a shortcoming to ...

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