ARCHOS 525 BLUEPRINT · /d/dgm_recommendation-system
Recommendation system with precomputed candidates, feature store and reranking
15 COMPONENTS · 17 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_recommendation-system) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_recommendation-system)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_recommendation-system" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Recommendation system with precomputed candidates, feature store and reranking — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
gw_1["API gateway"]
secrets_2[("Secrets manager")]
log_3[("Event log")]
graph_4[("Social graph")]
pdp_5["Policy decision point (PDP)"]
rec_6["Recommendation service"]
workers_7["Fanout workers"]
fs_8[("Feature store")]
rerank_9["Reranking"]
cache_10[("Distributed cache")]
dlq_11[("Dead-letter queue (DLQ)")]
metrics_12[("Traces, metrics and logs")]
alerting_13[("Alerting")]
capacity_14["Capacity card"]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_1
gw_1 -->|"2. mTLS · HTTPS"| rec_6
rec_6 -->|"3a. Reads · RESP"| cache_10
rec_6 -->|"3b. Reads · HTTPS"| fs_8
rec_6 -->|"3c. Scores · HTTPS"| rerank_9
rerank_9 -->|"4. Returns · HTTPS"| rec_6
rec_6 -->|"5. Replies · HTTPS"| gw_1
gw_1 -->|"6. Replies · HTTPS"| client_0
gw_1 -->|"Asks · HTTPS"| pdp_5
gw_1 -->|"Sends events · TCP"| log_3
log_3 -->|"Delivers · TCP"| workers_7
workers_7 -->|"Pushes ids · RESP"| cache_10
workers_7 -->|"Parks · TCP"| dlq_11
workers_7 -->|"Reads · TCP"| graph_4
gw_1 -->|"Emits · HTTPS"| metrics_12
metrics_12 -->|"Pages · HTTPS"| alerting_13
secrets_2 -->|"Keys · HTTPS"| workers_7COMPONENT STACK (15)
- Web ClientSTATEFULAsks for recommendations
- API gatewaySTATELESSChecks the JWT and routes calls
- Secrets managerSTATEFULSupplies the workers' credentials
- Event logSTATEFULReceives clicks and new items
- Social graphSTATEFULWho follows whom
- Policy decision point (PDP)STATELESSAllows or denies each request
- Recommendation serviceSTATELESSAssembles the ranked list
- Fanout workersSTATELESSPush new items to follower lists
- Feature storeSTATEFULOnline features, same as training
- RerankingSTATELESSRescores the top candidates
- Distributed cacheSTATEFULHolds each user's candidate list
- Dead-letter queue (DLQ)STATEFULParks items that keep failing
- Traces, metrics and logsSTATEFULGateway traffic, errors, latency
- AlertingSTATEFULPages on-call when gateway errors rise
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (17)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Recommendation service (mTLS)[HTTPS]
- Recommendation service → Distributed cache (Reads)[RESP]
- Recommendation service → Feature store (Reads)[HTTPS]
- Recommendation service → Reranking (Scores)[HTTPS]
- Reranking → Recommendation service (Returns)[HTTPS]
- Recommendation service → API gateway (Replies)[HTTPS]
- API gateway → Web Client (Replies)[HTTPS]
- API gateway → Policy decision point (PDP) (Asks)[HTTPS]
- API gateway → Event log (Sends events)[TCP]
- Event log → Fanout workers (Delivers)[TCP]
- Fanout workers → Distributed cache (Pushes ids)[RESP]
- Fanout workers → Dead-letter queue (DLQ) (Parks)[TCP]
- Fanout workers → Social graph (Reads)[TCP]