That one time I used Go panics for flow control
Summary
A Go programming article exploring how a service overloaded by query load led to using panics for non-local flow control to cancel sorting work. It discusses profiling CPU usage, the limitations of context cancellation inside sort, and a custom nonLocalCancellation recovery approach to avoid wasted work.