How it works
A small application can begin with its web code, database, and cache on one machine. A person enters a domain; DNS, the internet’s directory of names, resolves it to an IP address; the client sends an HTTP request to that address; the server returns a response such as HTML or JSON.
Follow one request with example values. A browser looks up shop.example and receives 203.0.113.10, along with a time to live (TTL) of 300 seconds that says how long the answer may be reused. It connects to that address and sends GET /. The application reads a product list from the local database and sends back HTML. No network hop separates the code from its data, so the path stays short and easy to debug.
One server goes further than many people expect. At an example 10,000 daily users making 20 requests each, the average is about 2.3 requests per second (200,000 ÷ 86,400), well within reach of one modest machine running Nginx and Postgres. More components add operational work, so traffic alone is not a reason to deploy every scaling technique at once. First find the part that fails or slows down.
The cost is risk, not speed. This machine is a single point of failure, one part whose loss stops the whole service: a crash or restart takes the site offline, and a dead disk can destroy your data unless backups live elsewhere. Move on once downtime becomes expensive or one resource runs out.
Your new site has a few daily users. Trace how a browser reaches its home page.
Keep one server while demand is small: DNS resolves the domain, the browser sends HTTP to the server, and the server returns the page. This is easy to run, but one machine failure can take the site offline.
Use this as a guide for self review; written answers are not graded.Keep in mind
- DNS finds an address; HTTP carries the request and response.
- A single server is a reasonable starting point and a single point of failure.