Intermediate · Go for programmers
Serving HTTP
The gateway on HTTP, in Go: a server with keys, rate limits and a cap on bodies, in front of its routes; upstreams asked over HTTP; replies streamed as server-sent events; a review of an assistant's cache; and a server ready for traffic, with timeouts and a graceful shutdown.
- You build
- server.go, then upstream.go, then stream.go, then cache.go, then serve.go
- Stages
- 3 Build, 1 Catch, 1 Ship
- Time
- About 4 hours
- Runs on
- Your machine
Loading the workspace…
Loading the workspace…