Hacker News new | ask | show | jobs
by gcommer 2978 days ago
The problem is that all CLS systems in JS are inherently leaky, due to the many games JS libraries/apps can (and do) play with resource pooling. Implementors basically have to play a plug-the-holes game getting all the popular libraries to properly "play along" with the CLS system. For example, domains needed tons of PRs very similar in nature to this: https://github.com/sequelize/sequelize/pull/589/files#diff-1...

Also, they typically come with a sizable perf hit: https://github.com/bmeurer/async-hooks-performance-impact