aarons-talks / 2021-04-24-GopherCon-Russia

Code and Slides for GopherCon Russia 2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GopherCon Russia 2021

This repository contains slides and code for my talk at GopherCon Russia 2021.

Slides

The slides/ directory has the slides for the talk. They are in reveal JS format. In order to run them, you need a static web server. Support is provided out of the box for Caddy. To use it, make sure you have Caddy v2 and run the following from the root of this repository (not the slides directory):

caddy run

Code

The other 3 directories are Go code:

  • origin/ - a simple HTTP server intended to be the "application" that we're proxying
  • scaler/ - a simple HTTP server intended to represent the system that scales replicas of the origin up and down. It also reports the number of replicas of the origin.

    The scaler doesn't actually scale replicas in this demo. It just reports a fake number of replicas

  • proxy/ - the service that accepts HTTP requests and forwards them to the origin. The proxy uses the scaler to determine how many replicas of the origin exist (it holds the request if there are no replicas) and intelligently forwards requests to the origin based on whether it can establish a TCP connection with it.

About

Code and Slides for GopherCon Russia 2021

License:MIT License


Languages

Language:JavaScript 45.8%Language:CSS 29.1%Language:SCSS 14.2%Language:HTML 9.0%Language:Go 1.9%