Skip to content
BENIBIX Learn

Application Server

Infrastructure🌍 Web Serving & NginxWeb Servers

Also known as App Server

A program that runs your app's code to build each answer when it is asked.

Think of it like

It is like the kitchen in a cafe. The waiter takes your order, but the kitchen cooks it.

Example

Lucy's shop runs a Python app on Gunicorn. Nginx sends the images itself. It passes each order page to Gunicorn, which builds it from the database.

Why it matters

Splitting the two lets each do what it does best. The web server handles crowds, and the app server handles the logic.

Definition

An application server runs the code that builds answers as they are asked for. It reads from a database, does sums and makes a page or some JSON for each request. A web server most often sits in front of it. The web server sends files itself and passes everything else on to the app server.
The application server is on the right. It builds each answer from code and the database.

Common mistake

Putting the app server straight on the internet. A web server in front handles TLS, slow visitors and files far better.

Key takeaways

  1. 1
    Runs code. Builds each answer fresh.
  2. 2
    Behind a web server. Which passes requests to it.
  3. 3
    Talks to data. Reads and writes the database.

Compare