Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wcummings
· 13y ago · 0 comments
node.js is sexier when it doesn't serve stacktraces in production. Plus async files reads still happen in an internal threadpool (one thread per core, hardcoded, IIRC) so it's pretty easy to saturate that anyway, you should be caching static assets.
Comments
[–]
Jare
13y ago
The express framework activates the view cache by default when configured for production, so both problems are actually the same.
[–]
wcummings
OP
13y ago
I suspect it's not configured for prod, since I'm seeing a stacktrace
[–]
blackysky
13y ago
you are right but I'll still use async over sync anytime... :)
[–]
Jare
13y ago
You will often prefer to use sync for one-time loads or for debugging.