Open In App

Web Server, Proxies and their role in Designing Systems

In system design, web servers and proxies play crucial roles in ensuring efficient communication and scalability. Web servers, like Apache or Nginx, serve as the backbone of client-server interactions, handling requests and delivering content. Proxies act as intermediaries, managing traffic flow, improving performance, and enhancing security by caching and load balancing. Together, they form the core infrastructure of distributed systems. Understanding their roles and integration is fundamental for designing resilient and high-performing systems.

Web Server and Proxies In System Design

Webservers

Every website sits on a computer that is known as a web server. Web server is a computer system that hosts websites and runs web server software. It is responsible for hosting websites. (Websites in themselves are collections of web pages). Some of the popular web servers these days are Apache HTTP and Microsoft IIS. Also, the machine(normal computer) to act as a web server should possess two traits:

Every web server connected to the internet is given a unique address of 4 digits that are separated by dots as shown below:



68.122.31.125

 

Types of Webservers

Web servers are categorized as per hosting websites into:

  1. Shared Hosts: Designed to host over 100+ websites.
  2. Dedicated Hosts: Designed to host only 1-2 websites 
  3. Custom Hosts: Specifically designed as per internal requirements for any large-scale websites. 

That’s why personal websites or indeed generic small websites uses shared hosts while on the other hand large-scale organization that generates tremendous traffic load uses dedicated and even if there is a requirement for custom server modification then we do even use custom hosts. 

 

How web server Work?

Application Server

Application server is specifically designed to run applications (generally invoking extreme computations) that includes both hardware and software to provide an environment to run the applications. 

Use Cases of web servers

Below are some of the uses of web servers:

Examples of Web Servers

Popular Web servers used are as follows:

Others also include such as Lightpad, Jigsaw Server, Sun Java System Web Server, Internet Information Services(IIS)   

Note: 

  • Apache HTTP is the most popular web server in the world. 
  • Apache with Tomcat Module is used to have JSP and J2EE support. 

Proxies in Distributed Systems

A proxy server is an intermediary piece of hardware/software sitting between the client and the backend server. Prior to discussing types of proxies let us get familiar with a few terminologies to better understand the concept.

Types of Proxies

Proxies can sit on the client’s local server side and also somewhere between the client and remote servers which we are going to discuss. Basically, they are of 2 types only because the proxy server can reside on the client’s local server or anywhere between the client and the remote servers.

1. Forward Proxy

An open proxy is a proxy server that is accessible by any Internet user. Generally, a proxy server only allows users within a networking group (i.e. a closed proxy) to store and forward Internet services such as DNS or web pages to reduce and control the bandwidth used by the group. With an open proxy, however, any user on the Internet is able to use this forwarding service.

When to use a forward proxy server?

Note: Forward proxy is also known as ‘Open Proxy’.

2. Reverse Proxy

A reverse proxy retrieves resources on behalf of a client from one or more servers. These resources are then returned to the client, appearing as if they originated from the proxy server itself. It typically sits behind the firewall in a private network and directs client requests to the appropriate backend server. A reverse proxy provides an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.

When to use a reverse proxy server?   

Note: Reverse proxy is also known as ‘Closed Proxy’.

Disadvantages of Proxy Server

Below are the disadvantages of proxy server:

Conclusion

After learning about forward and reverse proxy and the locations of the servers in each case, let us talk about some workrounds:


Article Tags :