Only at Node.js Interactive: Matteo Collina & His Quest to Write the Fastest Node.js Logger
Node.js Foundation
841

I tested this myself because I realized that logging was simply I/O and blocking at that! I found in my research that using a writable stream was the fastest — fs.createWriteStream()…my hypothesis was that you could have another process tail the file being written to, and that process could fan out the log file if necessary, or send the log data over the network.

Like what you read? Give Alex Mills a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.