Giter VIP home page Giter VIP logo

bitgo's Introduction

Bitgo

This project provides an API interface that calls the Coinbase API to check the spot price for a fiat currency against Bitcoin.

Architecture and Explanation

Application

The application, bitgo, is written in Golang using three non-native Go modules:

  • My own custom logger to support both klog and CLI format logs
  • httprouter for easier routing and DRY code
  • promhttp for prometheus metrics integration

The application runs at https://bitgo.joshgrancell.com, where you can see a full list of API endpoints.

CI Pipeline

Github Actions is currently configured so that on any tagged release matching the regex v* it will:

  • Build and publish a Docker image to Docker hub at jgrancell/bitgo.
  • Spin up a bitgo container and test several endpoints to validate its functionality.

NOTE: The CI pipeline is expected to fail. There is a final Github Action that calls an invalid currency path which triggers a failure. This is expected, and shows that we can catch errors when we can't decode JSON.

There is also an example of how to automate the Terraform deployment of the Helm Chart by tying it into ArgoCD. Again, this is only triggered on versioned releases, so the Helm Chart is only ever deploying tags that match v*

GitOps

This repository, specifically the deploy/charts Helm Chart directory, is watched by ArgoCD. On updates, ArgoCD will reconcile any changes in the live cluster.

The Helm Chart includes the option to deploy in a Highly Available configuration. When this is enabled, the pods will have an anti-affinity rule ensuring that they are all running on different nodes. Therefore, if a single Kubernetes node goes down it will not bring down the entire application.

The application was registered to ArgoCD by deploying the chart through Terraform code found in deploy/terraform.

bitgo's People

Contributors

jgrancell avatar

Watchers

James Cloos avatar  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.