๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is Middleware?

Software that sits between the request and response in a web application, performing processing like authentication or logging.

Middleware functions form a pipeline that processes HTTP requests and responses. Each middleware can inspect, modify, or reject requests before passing them to the next handler. Common middleware handles authentication, CORS, compression, rate limiting, and logging.

In Express.js, middleware uses next() to pass control. In Laravel, middleware classes handle the request pipeline. The order of middleware execution matters โ€” authentication should run before authorization, for example.

Related Terms

CSS Grid
A two-dimensional CSS layout system for creating complex grid-based designs with rows and columns.
Structured Data (Schema.org)
A standardized vocabulary for marking up web content so search engines can understand and display it as rich results.
Server-Sent Events (SSE)
A web technology enabling servers to push real-time updates to browsers over a single HTTP connection, simpler than WebSockets.
Service Worker
A JavaScript file that runs in the background, enabling offline support, push notifications, and background sync for web apps.
gRPC
A high-performance RPC framework using Protocol Buffers and HTTP/2 for efficient service-to-service communication.
Web Caching Strategies
Techniques for storing copies of web resources at various levels to reduce server load, bandwidth, and response times.
View All Web Development Terms โ†’