Business Logic Verification In Go Applications Using Contexts
summary
Explains how to instrument Go servers so each request builds a readable execution tree by: using the standard context API plus small custom constructors to attach typed metadata and prefixes, emitting those prefixes to storage (examples: Dynamo, S3) and optionally using runtime finalizers to record finishes. Claims this reconstructs business flow across tens of thousands of goroutines, makes timeouts and branch choices visible (e.g. 5s vs 10s), integrates with stdlib transparently and prevents expensive log mining and silent revenue leaks.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:31What is business logic
- 2:33Context mechanics in Go
- 6:55Cancellation and timeouts example
- 9:24Real-world use cases
- 11:13Standard library patterns
- 14:00Creating custom patterns
- 16:53Naming conventions for contexts
- 18:39Automated business logic tracing
- 21:18Context tree visualization
- 24:10Benefits of context tracking
- 25:57Conclusion and Q&A
