4 ms·
Domains were Node's answer to that, and it seemed to work pretty well. I adopted the approach for my own web framework (not JS based) and it has been an extreme
by jcheng 10y ago
Domains were Node's answer to that, and it seemed to work pretty well. I adopted the approach for my own web framework (not JS based) and it has been an extremely useful abstraction.
They're soft-deprecated in Node now though, and AFAICT work on a replacement has stalled.
https://nodejs.org/api/domain.html https://nodejs.org/api/domain.html