Intermediate · Go for programmers
Goroutines, channels and context
The gateway's limits, in Go: a token bucket for each key; retries with backoff, inside the caller's deadline; a limit on the calls in flight, and a batch sent at once; a review of an assistant's fan-out to every upstream; and a retry budget that holds an outage's retries in check.
- You build
- bucket.go, then retry.go, then flight.go, then fanout.go, then budget.go
- Stages
- 3 Build, 1 Catch, 1 Ship
- Time
- About 4 hours
- Runs on
- Your machine
Loading the workspace…
Loading the workspace…