# Scaling Techniques

## "Scaling Up" vs. "Scaling Out"

1. **Scaling up**: improving capacity, e.g., increasing memory, upgrading CPUs, or replacing network modules.
2. **Scaling out**: expanding the distributed system by deploying more machines

## Scaling Out

In particular, "scaling out" includes 3 techniques:

1. **Hiding communication latencies**
   * **asynchronous** communication
   * **server** check form vs. **client** check form
2. **Partitioning and distribution**
   * E.g., **DNS**
   * tree of **domains** and **zones**
3. **Replication**
   * **Caching**
   * Leads to **consistency** problems
   * **OK** for Web users but **not OK** for electronic stock exchanges and auctions


---

# 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://ret2basic.gitbook.io/ctfnote/computer-science/distributed-systems/introduction/scaling-techniques.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.
