concept middleware stack in category express
appears as: middleware stack

This is an excerpt from Manning's book Express in Action: Writing, building, and testing Node.js applications.
Middleware —In contrast to vanilla Node, where your requests flow through only one function, Express has a middleware stack, which is effectively an array of functions.
In Node, these two objects are passed through just one function. But in Express, these objects are passed through an array of functions, called the middleware stack. Express will start at the first function in the stack and continue in order down the stack, as shown in figure 4.2.