"Rush Tactics: Writing Go Code You Won’t Regret Later"
summary
Shows concrete tactics: avoid importing big SDK interfaces by defining a tiny local interface (example PutItemWithContext for DynamoDB), use context propagation to cancel wasted work, and make remote calls resilient with rate limiting via golang.org/x/time/rate and simple exponential backoff. Demonstrates bounding concurrency (worker pools, semaphores, WaitGroup) after firing off thousands of goroutines that triggered 429s, and adds OpenTelemetry traces and metrics for observability.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:30Story Time
- 4:17Implement Only What You Need
- 4:51Avoid ThirdParty Interfaces
- 13:03Summary
- 21:00Throttle Aggressive Clients
- 27:38Back Off Strategy
- 31:37Bonus
- 34:10Recap








