Server Development
NodeJS
Published articles in Server Development / NodeJS.
More articles in this area
Managing different node version with nvm on Windows
Nvm ( Node Version Manager ) allows you to quickly install and use different versions of node via the command line.
Env vars, process and globals in NodeJS
You can define custom env variables in two ways:
Event Loop in NodeJS
Slow I/O operations such as accessing disk and network resources are handled via Node's Event Loop . The Event Loop is started once you run a node script and exits once there are no more callbacks to…
Executing commands and files in NodeJS
There are a couple of ways to execute files and commands, but all use the module child_process .
File system operations in NodeJS
Node offers both, sync and async methods to handle files. Sync methods (having sync in the method name, e.g. fs.readFileSync() ) will block the execution of the program until it has finished…
Load balancing an HTTP server with cluster module
There are many strategies to scale your application:
NodeJS modules
In the REPL all node modules are already present so you do not have to explicitly require() them first. But when you write your own files you must choose between one of two options:
Streams in NodeJS
Streams are collections of data that might not be available all at once and don't have to fit in memory all at once. For example if you want to serve a file that is 1GB over HTTP you would create a…
V8 and the REPL in NodeJS
Node's build-in JavaScript engine is V8, but others such as Chakra (by Microsoft) can be used. V8 has three feature groups:
Working with HTTP and HTTPS in NodeJS
What you can achieve are things like: