GithubHelp home page GithubHelp logo

justeat / je.embeddedchecks Goto Github PK

View Code? Open in Web Editor NEW
3.0 49.0 1.0 128 KB

Micro-framework for embedding checks inside applications, so they tell you when they're healthy and how.

License: Other

PowerShell 5.93% C# 94.07%

je.embeddedchecks's Introduction

JE.EmbeddedChecks

The point

TL;DR

  1. embed checks in your applications
  2. trigger them from some regular event (eg, load balancer ping, cron, etc)
  3. publish check pass/fail information to monitoring
  4. -> operators know where to start looking, very quickly, when checks fail
  • ... instead of digging through logs or paging other engineers

Continuous delivery feedback cycles become shorter.

Pipelines become simpler to orchestrate.

In detail

It's really useful for applications to proactively tell operators which parts of themselves are healthy vs unhealthy. Load balancers are a good example. A standard pattern is to ping a web-server's endpoint to see whether to include that web-server in the load-balanced cluster, or not. If the web-server is ready to included, it responds with 200 OK, otherwise anything else.

This is a good "presence" check - "I am here", but if the web-server says "no" or fails to respond, the operator must go and delve in logs to find out why.

Embedded checks take this idea further:

  • Check dependencies. Covers:
    • Configuration
    • Reachability
    • Response times
  • Check functionality, against stubbed responses

Embedded checks are a way to save the operator time:

  • The checks allow the operator to triangulate to the root cause very quickly
  • The checks can run in any environment, not just production
  • The checks' history allow more advanced resiliency patterns like circuit breakers some data to decide whether to open or close

Embedded checks are a way to save engineers time:

  • onboarding is simpler - clone, run, see whether checks pass. If they don't, the checks have clues for how to make progress
    • application is now more self-documenting
    • dependencies are now more clearly surfaced

Features

Embedded check definition + runner

How to contribute

See CONTRIBUTING.md.

How to release

See CONTRIBUTING.md.

je.embeddedchecks's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

taseri

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.