Context timeout configuration for HTTP handlers with downstream database calls in Go
I am designing a Go service where each incoming HTTP request spawns a chain of calls: a database query, an outbound API request, and a cache write. I want a single deadline to govern the whole chain, but I also want individual stages to have their own stricter limits where needed. My current assumption is that I would derive a base context with context.WithT