Skip to content

aarons-talks/2021-05-19-PNW-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNW Go, May 19, 2021

This repository contains slides and code for my talk at PNW Go on May 19, 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 from my talk at PNW Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published