3 ms·
what about concurrency?
by dotborg 14y ago
what about concurrency?
- benologist 14y agoToo late to edit but I read you wrong lol. In terms of concurrency the out-of-request stuff is going to happen once per thread.
- benologist 14y agoIt comes down to whether you're going to dominate node's thread or not, if it's heavy or of course blocking then you'll have to do push that work off to be handled by a different thread. In my case I periodically query mongodb for new or updated data since the last time to be stored locally, push batches of data into redis, track and save load information etc all without any negative repercussions.