What is an Upstream Server?

What is an Upstream Server?

An 'Upstream Server', is a server that sits higher up in the hierarchy of a network and provides data, services or updates to another server, also referred to as the downstream server.

When working or operating in the fields of web development and computer networking, the term 'Upstream Server', is frequently encountered. Understanding what it is and how it works, is essential for anyone working in areas which involve technology and the internet.

In computer networks, the primary data or resources flow from the upstream server down to the client or intermediate servers, receiving requests from servers or clients which are downstream, sending back the required response or data.

1. Client Request

A client, for example, a web browser, sends a request to access a website or application.

The request will leave the client's device, reaching the upstream server first.

Techible - Step Arrow Down

2. Request Received

The upstream server receives the request, acting as an intermediary between the client and the back end servers.

It may terminate the connection to the client while it performs any initial checks on the request which was made by the client.

Techible - Step Arrow Down

3. Routing & Logic

The upstream server uses rules and logic, which based on the configuration for items such as 'Caching', and 'Content Types', will determine which back end server will be best suited to handle the request.

By distributing requests across multiple servers, the upstream server improves reliability, performance and availability.

Techible - Step Arrow Down

4. Forward To Back End Server

Once determined, the upstream server will forward the request onto the selected back end server.

At this point of the process, only the upstream server is exposed to the request made by the client, while any back end servers remain hidden.

Techible - Step Arrow Down

5. Back End Server Processes Request

The request is processed by the back end server where it will execute any code, read files or query a database.

Once the request has been processed, the back end server will then prepare a response.

Techible - Step Arrow Down

6. Response To Client

The back end server returns the completed request back to the upstream server, which may encrypt, modify, cache or compress the response, before sending the completed request back to the client or web browser.

The client will then receive the requested website page, file or data from the upstream server.

 

Techible - Step Arrow Down
Final Step - What Is An Upstream Server?

Upstream Server Benefits

Using an upstream server provides a several benefits, which not only increases speed and performance but improves the security and availability of a website or online service.

Faster Loading Speeds

Intermediate servers can save, or cache, copies of files from the upstream server. This means they can serve users instantly without requesting the same data multiple times, which reduces the requests and load, of any servers or databases.

Improved Traffic Management

A front-facing server can act as a traffic officer, which balances incoming requests across multiple, back end servers, so no single machine is overloaded with high amounts of traffic.

Stronger Security

Upstream servers sit safely behind proxy servers or firewalls, so because they are hidden from the public internet, it is much harder for hackers to attack them directly.

Lower Bandwidth Costs

In large companies, a single downstream server can download updates with a single request from an online, or upstream source. The updates can then be distributed to thousands of devices on a local network, saving on large amounts of internet data and bandwidth.

Easier Management

Updates, data changes and security fixes can be applied to one central upstream server, rather than updating every single computer individually.

Common Examples of Upstream Servers

Reverse Proxies & Load Balancers

When you visit a website, the website request normally goes to a 'middleman', server first, which use operating software such as Nginx or Apache.

This intermediate server forwards the request to a pool of back end servers that actually process the data. In this setup, those back end processing units are called upstream servers.

Software Update Hierarchies

In corporate networks which use systems such as 'Windows Server Update Services', abbreviated as 'MS-WSUSOD', a central server downloads updates directly from Microsoft. The central server then passes the updates down to local branch servers, with the primary central server acting as the upstream server.

Micro Services

Modern applications are normally broken into smaller services which are interconnected. For example, 'System', A stores customer profile information and 'System B', requires that information to send an email. In this instance, 'System A', is recognised as the upstream service because 'System B', depends on its data.