# faas

Function-as-a-Service runtime. Namespace: `faas`.

```mermaid
flowchart LR
    Redis[(Redis)]:::data
    RMQ[[RabbitMQ]]:::msg
    Vault[Vault]:::infra
    Flows[flows]:::peer
    Reviews[reviews]:::peer

    subgraph NS["ns: faas"]
        Backend[deployment: backend<br/>API]:::comp
        ExportReviews[deployment: export-reviews<br/>function]:::comp
    end

    Flows -->|trigger| Backend
    Backend -->|spawn| ExportReviews
    ExportReviews -->|REST| Reviews
    Backend -->|queue| Redis
    RMQ -->|consume tasks.*| 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
```
