The idea is that you push computationally intense work (i.e. what you might actually want threads for) to another process and possibly even another machine or set of machines instead of bogging down your web server. This is pretty good practice even on a web platform that does let you spin up threads (e.g. ASP.NET)
If you actually need threads and really really want this work in your web server process, you can write a C or C++ module for that particular piece.
Those threads I'm spinning up are in charge of sending information to other machines without making the result wait.
Yikes. I hope not. That's what IOCP are for. In .NET, use the built-in async methods and you'll get that without much need to think about it, but you should never be blocking a thread waiting for a network or file I/O result. That's just crazy.
You definitely don't need a thread to buffer and batch file writing.
I don't understand how this comment is responsive to the parent comment at all. Node's async model may have problems, but batch file writing is certainly not one of them. The parent comment is making the clear suggestion that you don't need to do 1000 individual inserts, so I don't understand what you're suggesting.
0
u/[deleted] Apr 27 '16
[deleted]