# Architecture (/self-hosting/architecture)

Toucan AI is a web application that consists of a frontend and a backend composed of three services
(web, worker, data service). It relies on the [required components](./required-components.mdx):
PostgreSQL, Redis, an S3-compatible bucket, an SMTP server, and LLM and embeddings endpoints. For an
evaluation, the chart can [run the first three itself](./required-components.mdx#what-the-chart-can-run-itself).

```mermaid
graph TD
    A[Frontend] --> B[Backend - web]
    B --> SMTP[SMTP Server]
    B --> D[Data service]
    D --> EDB[External databases]
    B --> DB[Postgres Database]
    B --> R[Redis]
    B --> S3[S3 bucket]
    B --> LLM[LLM and embeddings]
    W[Backend - worker] --> R
    W --> DB
    W --> LLM
```
