Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
wcummings
12y ago
0 comments
Save
Share
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.
0 comments
4 comments · 2 top-level
top
newest
oldest
Jare
12y ago
· 1 in thread
The express framework activates the view cache by default when configured for production, so both problems are actually the same.
wcummings
OP
12y ago
I suspect it's not configured for prod, since I'm seeing a stacktrace
blackysky
12y ago
· 1 in thread
you are right but I'll still use async over sync anytime... :)
Jare
12y ago
You will often prefer to use sync for one-time loads or for debugging.
j
/
k
navigate · click thread line to collapse