Skip to main content
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
[![Recommendation system with precomputed candidates, feature store and reranking — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_recommendation-system/opengraph-image)](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_7

COMPONENT STACK (15)

  • Web ClientSTATEFUL
    Asks for recommendations
  • API gatewaySTATELESS
    Checks the JWT and routes calls
  • Secrets managerSTATEFUL
    Supplies the workers' credentials
  • Event logSTATEFUL
    Receives clicks and new items
  • Social graphSTATEFUL
    Who follows whom
  • Policy decision point (PDP)STATELESS
    Allows or denies each request
  • Recommendation serviceSTATELESS
    Assembles the ranked list
  • Fanout workersSTATELESS
    Push new items to follower lists
  • Feature storeSTATEFUL
    Online features, same as training
  • RerankingSTATELESS
    Rescores the top candidates
  • Distributed cacheSTATEFUL
    Holds each user's candidate list
  • Dead-letter queue (DLQ)STATEFUL
    Parks items that keep failing
  • Traces, metrics and logsSTATEFUL
    Gateway traffic, errors, latency
  • AlertingSTATEFUL
    Pages on-call when gateway errors rise
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (17)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Recommendation service (mTLS)[HTTPS]
  3. Recommendation service → Distributed cache (Reads)[RESP]
  4. Recommendation service → Feature store (Reads)[HTTPS]
  5. Recommendation service → Reranking (Scores)[HTTPS]
  6. Reranking → Recommendation service (Returns)[HTTPS]
  7. Recommendation service → API gateway (Replies)[HTTPS]
  8. API gateway → Web Client (Replies)[HTTPS]
  9. API gateway → Policy decision point (PDP) (Asks)[HTTPS]
  10. API gateway → Event log (Sends events)[TCP]
  11. Event log → Fanout workers (Delivers)[TCP]
  12. Fanout workers → Distributed cache (Pushes ids)[RESP]
  13. Fanout workers → Dead-letter queue (DLQ) (Parks)[TCP]
  14. Fanout workers → Social graph (Reads)[TCP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →