# comparisons

Сравнение чертежей. Namespace: `comparisons`.

```mermaid
flowchart LR
    PG[(PostgreSQL)]:::data
    S3[S3 Proxy]:::infra
    MinIO[(MinIO)]:::data
    Kafka[[Kafka]]:::msg
    Drawings[drawings]:::peer

    subgraph NS["ns: comparisons"]
        Frontend[deployment: frontend<br/>nginx]:::comp
        Backend[deployment: backend<br/>API]:::comp
        Cfg{{configmaps:<br/>nginx, tasks-execution}}:::cfg
        Frontend --> Backend
        Cfg -.-> Backend
        Cfg -.-> Frontend
    end

    Drawings -->|REST| Backend
    Kafka -->|consume drawings.uploaded| Backend
    Backend --> PG
    Backend -->|rendered diff| S3 --> MinIO

    classDef comp fill:#ec4899,stroke:#9d174d,stroke-width:2px,color:#fff
    classDef peer fill:#fce7f3,stroke:#9d174d,color:#000
    classDef data fill:#10b981,stroke:#065f46,color:#fff
    classDef infra fill:#0ea5e9,stroke:#075985,color:#fff
    classDef msg fill:#ef4444,stroke:#991b1b,color:#fff
    classDef cfg fill:#fef3c7,stroke:#92400e,color:#000
    style NS fill:#fdf2f8,stroke:#ec4899,stroke-width:2px
```
