Lock-free per-request context
rcrowley opened this issue · comments
Richard Crowley commented
WithContext
and Context
are unnecessarily globally synchronized. I think the solution is essentially an http.Handler
that allocates an instance of another http.Handler
(this is the type of the per-request context) and calls its ServeHTTP
method.
Andrew commented
Is this a performance issue when tigertonic is underload?