Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 2.79 KB

README.md

File metadata and controls

98 lines (65 loc) · 2.79 KB

AwayZone

image

A highly available web application - that's Always On (pun intended :D) - relying on an automated health check system to notify the team when something is not working as expected.

Dependencies

  • Docker
  • make
    • make is pre-installed in most Linux systems.
    • In macOS it is included as part of the Xcode command line utils. It can be installed with the following command:
    xcode-select --install
    

Usage

Build and init web and health-checker applications

make run-dev

Stop running containers

make stop-dev

Just build images

make build

Miscellaneous

To list all available commands just run:

make

Implementation Plan, check list:

Implement an HTTP server/web application

  • Implement a simple HTTP server app
  • Expose endpoints GET /health and GET /status
  • Return random sample data to simulate database connectivity status
  • Log response errors
  • On error, trigger alert notification

Write a client script app for health check

  • query a single health check endpoint, using HTTP protocol
  • get the list of endpoints from a .env file or env vars
  • get the check interval from external configuration file
  • Collect request/response metrics
  • make it async to query two endpoints simultaneously in random order
  • Run in intervals, instead of just once

Contaneirize the health check system

  • Build docker image
  • Create a docker compose file

Package the solution with helm

  • Build a helm chart
  • Organize helm values files per environment

Deploy via IaC to an orchestrated environment:

  • Create a pulumi program
  • Use pulumi to deploy helm charts to Kubernetes

Provision infrastructure for application

  • Terraform - Create azure-aks-cluster module
  • Terraform - Create project/root module to provision a CSP environment per region
  • Provision managed Kubernetes cluster, using terraform

Documentation

  • Improve README
  • Document service's endpoints using OpenAPI spec

Prepare presentation, simple slides

  • Plan presentation steps. Prepare a few slides, if needed
  • Perhaps list and sort acceptance criterias, plus bonus point, and go through sections that cover group of related criteria? Might be a way to get the presentation organized and move fast, giving room for questions

README

  • Improve README, branding, logo, be fun, ... AWAA ZONE, from TOW-AWAY ZONE, parking not allowed, not parking, always running, always on, ...
  • Rename repo to use new name