Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_fraud-detection-realtime

Real-time fraud detection (score a payment inside a latency budget, hold the risky ones for a person)

14 COMPONENTS · 15 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Real-time fraud detection (score a payment inside a latency budget, hold the risky ones for a person) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_fraud-detection-realtime/opengraph-image)](https://archos.sageideas.dev/d/dgm_fraud-detection-realtime)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_fraud-detection-realtime)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_fraud-detection-realtime" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Real-time fraud detection (score a payment inside a latency budget, hold the risky ones for a person) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  merchant_0[("Merchant checkout")]
  analyst_1[("Fraud analyst")]
  scoring_2["Scoring service"]
  policy_3["Policy decision point (PDP)"]
  secrets_4[("Secrets manager")]
  features_5[("Feature store")]
  metrics_6[("Traces, metrics and logs")]
  log_7[("Event log")]
  alerting_8[("Alerting")]
  proc_9[("Stream processing application")]
  router_10["Case router"]
  dlq_11[("Dead-letter queue (DLQ)")]
  queue_12[("Message queue")]
  capacity_13["Capacity card"]
  merchant_0 -->|"1. Calls with JWT · HTTPS"| scoring_2
  scoring_2 -->|"2a. Reads features · HTTPS"| features_5
  scoring_2 -->|"2b. Decision (JWT) · HTTPS"| merchant_0
  scoring_2 -->|"2c. Appends decision · TCP"| log_7
  log_7 -->|"3a. Consumes · TCP"| proc_9
  log_7 -->|"3b. Consumes held · TCP"| router_10
  proc_9 -->|"4a. Upserts counts · HTTPS"| features_5
  proc_9 -->|"4b. Parks events · TCP"| dlq_11
  router_10 -->|"4c. Queues case · TCP"| queue_12
  queue_12 -->|"5. Shows case (JWT) · HTTPS"| analyst_1
  scoring_2 -->|"Asks permission (mTLS) · HTTPS"| policy_3
  scoring_2 -->|"Fetches credentials · HTTPS"| secrets_4
  scoring_2 -->|"Sends metrics · OTLP"| metrics_6
  metrics_6 -->|"Scrapes metrics · HTTPS"| proc_9
  metrics_6 -->|"Feeds alerts · HTTPS"| alerting_8

COMPONENT STACK (14)

  • Merchant checkoutSTATEFUL
    Sends a card payment to be scored
  • Fraud analystSTATEFUL
    Works held payments in a case view
  • Scoring serviceSTATELESS
    Checks the JWT; scores with the model in-process
  • Policy decision point (PDP)STATELESS
    Decides if this merchant may score
  • Secrets managerSTATEFUL
    Holds the service credentials
  • Feature storeSTATEFUL
    Online copy: per-card counts by window
  • Traces, metrics and logsSTATEFUL
    Latency, errors, consumer lag
  • Event logSTATEFUL
    Partitioned log keyed by card id
  • AlertingSTATEFUL
    Pages on-call on slow scores or lag
  • Stream processing applicationSTATEFUL
    Counts per card; drops repeat ids
  • Case routerSTATELESS
    Picks held payments from the log
  • Dead-letter queue (DLQ)STATEFUL
    Parks events that cannot be read
  • Message queueSTATEFUL
    Held cases wait for an analyst
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (15)

  1. Merchant checkout → Scoring service (Calls with JWT)[HTTPS]
  2. Scoring service → Feature store (Reads features)[HTTPS]
  3. Scoring service → Merchant checkout (Decision (JWT))[HTTPS]
  4. Scoring service → Event log (Appends decision)[TCP]
  5. Event log → Stream processing application (Consumes)[TCP]
  6. Event log → Case router (Consumes held)[TCP]
  7. Stream processing application → Feature store (Upserts counts)[HTTPS]
  8. Stream processing application → Dead-letter queue (DLQ) (Parks events)[TCP]
  9. Case router → Message queue (Queues case)[TCP]
  10. Message queue → Fraud analyst (Shows case (JWT))[HTTPS]
  11. Scoring service → Policy decision point (PDP) (Asks permission (mTLS))[HTTPS]
  12. Scoring service → Secrets manager (Fetches credentials)[HTTPS]
  13. Scoring service → Traces, metrics and logs (Sends metrics)[OTLP]
  14. Traces, metrics and logs → Stream processing application (Scrapes metrics)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →