8 karma · joined Apr 29, 2015 (11y ago) · 9 submissions
comment 11y ago · link · parent
One thing you might want to take into account is that ES2015 generators allow you to write long, blocking functions as generators that partially compute the result before deferring further computation to somewhere further along in the message queue. This allows you to spread out blocking computations so that you can still serve requests.
comment 11y ago · link · parent
comment 11y ago · link · parent