# flows

Оркестрация бизнес-потоков. Namespace: `flows`.

```mermaid
flowchart LR
    Redis[(Redis)]:::data
    Kafka[[Kafka]]:::msg
    RMQ[[RabbitMQ]]:::msg
    Vault[Vault]:::infra
    FaaS[faas]:::peer
    Camunda[Camunda BPM]:::peer

    subgraph NS["ns: flows"]
        Frontend[deployment: frontend]:::comp
        Backend[deployment: backend<br/>API]:::comp
        Celery[deployment: celery<br/>worker]:::comp
        Frontend --> Backend
        Backend -. tasks .-> Celery
    end

    Backend -->|state| Redis
    Celery -->|broker| Redis
    Backend <-->|flows.*| Kafka
    Backend -->|publish tasks.*| RMQ
    Backend -->|trigger| FaaS
    Backend -->|start workflow| Camunda
    Camunda -->|callback| Backend
    Backend -. approle .-> Vault

    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 msg fill:#ef4444,stroke:#991b1b,color:#fff
    classDef infra fill:#0ea5e9,stroke:#075985,color:#fff
    style NS fill:#fdf2f8,stroke:#ec4899,stroke-width:2px
```
