Member-only story
Oh that question “How web works?”;A brief talk on Web-Servers: Apache & Nginx along with CDN and LVS
One of the simplest and smallest question, an Interviewer can ask or do ask actually is “How web works?” but believe me its one of the difficult question to answer in a practical manner. It do needs one to answer:-
- Client (What happens when you click Order Now?)
- Networking (How does information travel across internet?)
- Security (How do we prevent hackers from stealing our passwords?)
- Server (What does “the cloud” mean exactly?)
- Application (What are web servers and web frameworks?)
- Database (How do applications retrieve data? SQL vs NoSQL?)
- Scaling (How do applications handle millions of requests?)
- Rendering (How do browsers work? Basics of JavaScript.)
To diagrammatically explain, attached is the whole workflow being followed:-
Although there is so much to be discussed in above figure; I will focus on few parts only to discuss majorly about Web Servers(Apache & Nginx), CDN and LVS ofcourse with the functionalities that they cover as Load balancing, virtual hosting, caching and Reverse proxy.