# 分散式應用程式

> For AI agents: the complete glossary index is at [llms.txt](https://glossary.cncf.io/zh-tw/llms.txt).
> Markdown versions of every glossary page are available by appending `index.md` to the page URL.

<a id="what-it-is"></a>

## 是什麼

分散式應用程式是一種功能被拆分為多個較小獨立部分的應用程式。
分散式應用程式通常由獨立的[微服務](https://glossary.cncf.io/zh-tw/microservices)組成，以處理更廣泛的應用程式中的不同問題。
在雲端原生的環境中，這些獨立元件通常在[叢集](https://glossary.cncf.io/zh-tw/cluster)中以[容器](https://glossary.cncf.io/zh-tw/container)執行。

<a id="problem-it-addresses"></a>

## 解決的問題

在單一計算機上執行的應用程式代表單點故障--如果該台計算機故障，應用程式將變得不可用。
分散式應用程式通常作為[單體式應用程式](https://glossary.cncf.io/zh-tw/monolithic-apps)的對比。
單體式應用程式可能難以擴展，因為各個元件無法獨立擴展。
隨著單體式應用程式的增長，它們也會拖累開發者的速度，因為更多的開發者需要在未必有明確定義邊界的共享程式碼庫中工作。

<a id="how-it-helps"></a>

## 如何幫助我們

當將一個應用程式拆分為不同的部分並在許多地方執行，整個系統能夠承受更多的故障。
它也允許應用程式利用單個應用程式實例所不具備的可擴展性，也就是[水平擴展](https://glossary.cncf.io/zh-tw/horizontal-scaling)。
然而，這也需要付出代價：增加複雜度與營運開銷--你現在正在執行多個應用程式元件，而非單一應用程式。

---

- Canonical URL: https://glossary.cncf.io/zh-tw/distributed-apps/
- Status: Completed
- 最後編輯 October 19, 2023: ` Fix translation of cloud native term ` ([4cbd0a8](https://github.com/cncf/glossary/commit/4cbd0a8bc4b87f411e8e09eb6764422f68c19f2b))
- Source: https://github.com/cncf/glossary/blob/main/content/zh-tw/distributed-apps.md
- License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
