# What is NGINX

> [Docs](https://www.nginx.com/resources/glossary/nginx/)
>
> [Opentutorials Course](https://opentutorials.org/module/384/3462)

\ <br>

## Before getting started

<br>

### Web

* The Web is one of the **communication protocols** that operates on top of the Internet network system
* The reason the Web is used synonymously with Internet is because the Web is the most successful Internet service!

<br>

### Server & Client

* The `Client` requests information, and the `Server` provides information!

<br>

### HTTP

* A protocol (agreement) for exchanging information between a Web Server and a web client
* It defines the rules for how a `Request` should be made and how the `Response` to it should be handled

<br>

### Web Server

* Also called `HTTP Server`
* Refers to the software that provides information on the server side
* A well-known web server is `Apache`
* `NGINX` has been gradually rising since 2007!

\ <br>

## NGINX

* A **next-generation** web server!
  * It is putting the brakes on `Apache`'s dominance!
    * I like it...
* A web server with an **asynchronous event-driven** architecture designed for **scalability** to handle websites with heavy traffic
* *It can serve data **faster** with **fewer resources**!*
  * A **lightweight** web server

\ <br>

## NGINX vs Apache

* It is no exaggeration to say that `Apache` is a living witness of the Web
  * It is no exaggeration to say that `Apache`, which is **Open Source** and **free** to use, is supporting the Web!
* But, `Apache` is software that was created a long time ago
  * The requirements of the era when Apache was created may no longer be valid in the current era
* `NGINX` is a web server created in response to the demands of a new era
  * All development goals are focused on **high performance**
  * Features that are rarely used were boldly excluded

<br>

### Performance comparison

> <https://theorganicagency.com/news/apache-vs-nginx-performance-comparison/>

<br>

<br>

<br>

<br>

<br>

### Conclusion

: In most situations, `NGINX` shows better performance than `Apache`!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chloe-codes1.gitbook.io/til/server/server-101/what_is_nginx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
