Web server vs Application server vs Database server
Web server serves a web content (HTML and static content) over the HTTP protocol.
Application server is a container on which one can build and expose business logic and processes to client applications through various protocols like HTTP. Some cases it will have internal web server. Application server is heavy in terms of resource usage.
Database server refers to the back-end system of a database application using client/server architecture. The database server performs tasks such as data analysis, storage, data manipulation, archiving, and other non-user specific tasks
Apache vs NGINX
Both Apache and NGINX are web servers and used to serve the page contents back to users. NGINX has more efficiency in terms response especially when it comes to larger set of static pages. NGINX caching makes the contents ready available to user’s browser without going back to server to process the requsts from scratch.
Please search following topics in the search option of the site