When process.nextTick Beats setImmediate and Why That Can Starve I/O
process.nextTick runs as a microtask before I/O and setImmediate, which runs in the check phase. Using nextTick recursively can starve I/O callbacks. Here is how the ordering works and when to choose each.