context பேக்கேஜ் cancellation signals, deadlines, மற்றும் request-scoped values ஐ API boundaries மற்றும் goroutines முழுவதாக கொண்டு செல்கிறது. இது operations இன் lifetime ஐ கட்டுப்படுத்துவதற்கான தரமான mechanism ஆகும் — குறிப்பாக work ஐ cancel செய்ய மற்றும் timeouts ஐ function calls இன் chain முழுவதாக propagate செய்ய.
இது தீர்க்கும் core problem
A request starts work across many goroutines/functions (DB query, API call, etc.).
If the client disconnects or a timeout hits, you want to CANCEL all that work
so goroutines don't keep running uselessly (wasting resources / leaking).
→ context propagates the "stop now" signal down the entire call chain.
