Hosting Golang Web services sanely
22 May 2017
Kai Hendry
22 May 2017
Kai Hendry
Behold the DevOps evolution
A cloud service orchestrates the containers, secures them, provisions them, scales them.
Golang not supported on AWS Lambda :(
package main import ( "fmt" "log" "net/http" "os" ) func main() { addr := ":" + os.Getenv("PORT") http.HandleFunc("/", hello) log.Fatal(http.ListenAndServe(addr, nil)) } func hello(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello World from Go") }
Gin - Live reload utility for Go web servers
make
/ hooks supportWelcome to the next generation
$ apex --env production metrics total cost: $0.00 invocations: 1,431 ($0.00) duration: 6m30.522s ($0.00) throttles: 0 errors: 0 memory: 128
22 May 2017