# Architecture designs

> Design system architecture in Arc-Tech with typed components, relationships, zones, automatic layout and live DNS checks.

Source: https://arc-tech.dev/docs/architecture

An architecture design is a diagram that carries the system's real details. It has **components**, **connections** between them, and **environments**.

## Components

Each component has a type, a name and properties for that type, such as a database's engine, host and port. These are the types:

`dns`, `load_balancer`, `cdn`, `firewall`, `reverse_proxy`, `app_service`, `worker`, `function`, `vm`, `container_cluster`, `postgres`, `mysql`, `redis`, `object_storage`, `data_warehouse`, `queue`, `pubsub`, `webhook`, `external_api`, `api_gateway`, `auth_service`, `billing_service`, `notification_service`, `file_service`, `logs`, `metrics`, `monitoring`, `alerts`, `documentation`, `group`, `custom`

A `group` is a zone, such as *Edge*, *Services* or *Data*. Other components go inside it.

Descriptive properties work on every component: `description`, `tags`, `owner` and `status` (draft, active, warning or deprecated).

> Never put passwords, keys or tokens in properties. Everyone who can open the design, its guests and connected AI assistants can read them.

## Connections

A connection goes from one component to another and says how they relate:

| Relationship | Means |
|---|---|
| `routes_through` | Traffic is sent on to it |
| `connects_to` | Calls it |
| `depends_on` | Needs it to work |
| `reads_from`, `writes_to` | Reads or writes its data |
| `stores_in` | Keeps files or objects there |
| `publishes_to`, `consumes_from` | Sends to or takes from a queue or topic |
| `authenticates_with` | Signs users or calls in through it |
| `backed_by` | Runs on or is served by it |

A connection can have a label, such as *HTTPS*, *MQTT* or *telemetry*.

## Layout

Move components freely, or use **Auto-arrange nodes** to lay the design out from left to right.

## Live DNS

A DNS component can check itself. **Pull from live DNS** reads the domain's current records, shows what differs from the design, and lets you choose what to bring in.

## Docs beside the diagram

Switch to **Split** to write next to the canvas. Type `@` in a page to mention a component. Readers who click the mention go straight to it. See [pages](https://arc-tech.dev/md/pages.md).
