|
|
|
|
|
by rwbcxrz
2974 days ago
|
|
I've always been under the impression that concepts like thread/continuation-local storage were generally discouraged, but I never fully understood the reason. Obviously, you'd want to avoid coupling your code to an HTTP-specific context if you want to expose a gRPC endpoint in the future. Are there any other downsides to this approach? |
|
Also, they typically come with a sizable perf hit: https://github.com/bmeurer/async-hooks-performance-impact