middleware
Middleware (noun) means Code that sits between a request arriving and the part of the application that finally answers it, doing shared jobs on the way through such as checking that the user is logged in, recording the request or rejecting bad input. Example: “Authentication is handled by middleware, so no individual page has to check it.”
How to Use Middleware
Learner’s notesIn plain EnglishCode that sits in the middle and handles jobs shared by everything passing through.
Technical; a mass noun in the broad sense (some middleware) but countable in web frameworks (a middleware, several middlewares).
In web frameworks, middleware runs in order, one after another, and any one of them can stop the request before it reaches the page.
Trace the full origin ↓Fill the Gap
Can you complete this real example?
Authentication is handled by _____, so no individual page has to check it.
Etymology
A compound of middle and the -ware of software.
Synonyms
View more →Related Words
Rhymes for middleware
See all rhymes for middleware →Frequently Asked Questions
What is the difference between middleware and a plugin?
Middleware is positioned in the path a request travels along and acts on every request that passes through it. A plugin adds a feature to a piece of software, and may or may not touch requests at all. Some plugins work by installing middleware.
Does middleware only exist in web applications?
No. The word was used for integration software connecting business systems long before web frameworks adopted it, and both senses are still current.
Can middleware stop a request?
Yes. That is one of its main uses — middleware that checks permissions can refuse a request and return an error rather than letting it reach the rest of the application.