Data import and processing
sequenceDiagram
participant F as fastapi
participant P as postgres
participant R as rpc-dbt
participant E as elastic
autonumber
note left of F: POST /run-analytics
rect var(--md-footer-bg-color--dark)
note over F: import into postgres
F->>E: load collections
E-->>F: collections
F->>E: load materials
E-->>F: materials
F->>P: store in postgres
end
rect var(--md-footer-bg-color--dark)
note over F: run analytics
F--)R: rpc: send run analytics
R->>P: runs analytics models
note right of F: poll finished ...
end
rect var(--md-footer-bg-color--dark)
note over F: store historical changes
F--)R: rpc: send run snapshots
R->>P: runs snapshots
note right of F: poll finished ...
end
note left of F: call spellcheck()