Web Server

Domain: Internet & Web

🎯 Motivation

Software that receives HTTP requests and sends HTTP responses. Apache, Nginx are web servers.

πŸ“‹ Concrete Example

Web server: receives β€˜GET /index.html’. Finds the file. Sends β€˜200 OK’ + HTML. Receives β€˜GET /api/data’. Calls the application. Sends JSON. The middleman between client and application.

πŸ”— Analogy

A web server is like a restaurant host - they greet customers (requests), find them a table (route to the right resource), and bring the menu (response). They handle the flow of customers.