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
[](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_8COMPONENT STACK (14)
- Merchant checkoutSTATEFULSends a card payment to be scored
- Fraud analystSTATEFULWorks held payments in a case view
- Scoring serviceSTATELESSChecks the JWT; scores with the model in-process
- Policy decision point (PDP)STATELESSDecides if this merchant may score
- Secrets managerSTATEFULHolds the service credentials
- Feature storeSTATEFULOnline copy: per-card counts by window
- Traces, metrics and logsSTATEFULLatency, errors, consumer lag
- Event logSTATEFULPartitioned log keyed by card id
- AlertingSTATEFULPages on-call on slow scores or lag
- Stream processing applicationSTATEFULCounts per card; drops repeat ids
- Case routerSTATELESSPicks held payments from the log
- Dead-letter queue (DLQ)STATEFULParks events that cannot be read
- Message queueSTATEFULHeld cases wait for an analyst
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (15)
- Merchant checkout → Scoring service (Calls with JWT)[HTTPS]
- Scoring service → Feature store (Reads features)[HTTPS]
- Scoring service → Merchant checkout (Decision (JWT))[HTTPS]
- Scoring service → Event log (Appends decision)[TCP]
- Event log → Stream processing application (Consumes)[TCP]
- Event log → Case router (Consumes held)[TCP]
- Stream processing application → Feature store (Upserts counts)[HTTPS]
- Stream processing application → Dead-letter queue (DLQ) (Parks events)[TCP]
- Case router → Message queue (Queues case)[TCP]
- Message queue → Fraud analyst (Shows case (JWT))[HTTPS]
- Scoring service → Policy decision point (PDP) (Asks permission (mTLS))[HTTPS]
- Scoring service → Secrets manager (Fetches credentials)[HTTPS]
- Scoring service → Traces, metrics and logs (Sends metrics)[OTLP]
- Traces, metrics and logs → Stream processing application (Scrapes metrics)[HTTPS]