> For the complete documentation index, see [llms.txt](https://hanfak.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanfak.gitbook.io/workspace/general-paradigms/architecture.md).

# Architecture

* Architecture is the philosophy that underlies a system and defines the purpose, intent, and structure of the system
* Architecture is needed to control the infrastructure when it is designed, in use, and when it is changed
* **An optimal software architecture is one that has maximal flexibility for change at the lowest possible cost**
* cost is measured in terms of certain qualities that represent a software architecture’s design and implementation
* in addition to the cost of the infrastructure to operate it.
* defining trait of a software quality is that it can be tangibly measured and has an impact on other qualities
* conveys two major pieces of information about software:
  * The software components that constitute a whole system to provide certain functions at the system level.
  * How the components communicate with each other to fulfill the system functions

## Comparisons

* <https://medium.com/oolooroo/navigating-the-maze-of-modern-architectures-comparing-and-contrasting-leading-software-dcec9b68fc87>

## General

* <https://engineering.videoblocks.com/web-architecture-101-a3224e126947>
* <https://github.com/donnemartin/system-design-primer>
* <https://www.8bitmen.com/best-resources-to-learn-software-architecture-system-design/>
* <https://docs.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/architectural-principles>
* <https://www.youtube.com/watch?v=4Iqjhi3kusY> Designing Systems - What I wish I knew • Jakub Nabrdalik • Devoxx Poland 2021


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hanfak.gitbook.io/workspace/general-paradigms/architecture.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.
