In this post, I will break down three main
servers that are used for web-applications which are
application server and
Web serveris a program that uses HTTP (Hypertext Transfer Protocol) to serve the static files to users, in response to their requests.
What is Web server? - Definition from WhatIs.com
But what happens if a web server gets a request that has to be processed dynamically?
That's when an application servers comes in.
Apache are very well known and widely used
web server softwares.
An application server is a server program in a computer in a distributed network that provides the business logic for an application program.
What is application server? - Definition from WhatIs.com
It is the server your application is actually run on. An application server is not restricted to HTTP and is able to do a bunch of other stuff.
When an application server gets a request from the web server, it tells your application about it and your application dose what it's told to do.
If you are famillier with Ruby on Rails, you have probably heard of
Puma. They are very widely used application server softwares for rails applications.
A database server is a computer system that provides other computers with services related to accessing and retrieving data from a database.
What is a Database Server?
Basically, it is very self-explanatory.
A database server holds the
Database Management System (DBMS) and the
databases. It searches the database for selected records and passes them back over the network.