Coder Social home page Coder Social logo

consul-healthchecker's Introduction

CONSUL HEALTH CHECK

Okay.. So what the heck does this program do?

This is a simple health checker for checking registered APIs in a service of a specific node. The application can be configured to do a simple health check of all the registered APIs in a service, given a specific time, if any of the APIs fails to respond to the health checker, the HC will automatically deregister that API from that service.

Why is removing a failing API from a service is important?

Consul is used as a service discovery tool by an API Gateway(Ocelot). Therefore we have to make sure that those services registered to Consul is actually available. Failure to do so will result the API Gateway to call end point of API servers which may not be available(Technical problem?), thus resulting an error.

How to use this health Checker?

The user is required to provide 3 key elements in a single argument,
  1. Consul Host Name
  2. Service Name
  3. Interval(ms)

Eg: dotnet ConsulHealthChecker.dll "localhost:5555;Test-API;1000"

consul-healthchecker's People

Contributors

ravianxreaver avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.