Skip to content

About

Aurora demo: real-time fraud and risk scoring (Go, gRPC + HTTP)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aurora-fraud

Aurora — real-time fraud and risk scoring (Go, gRPC + HTTP).

Domain slices

Folders under internal/ are business domains, not layers.

Slice Owns
internal/scoring The assessment use case: HTTP surface, engine, request/response contracts
internal/rules Weighted rule catalog, transaction signals, merchant-category and country risk tables, risk bands
internal/velocity Sliding-window movement counters, per-account registry, thresholds and headroom
internal/casefile Investigation records, the case-file state machine, analyst priority queues
internal/settlement The ledger.settled Kafka consumer and the projection that folds settled movements into the read models
internal/identity Client for the customer profile owned by aurora-identity
internal/ledger Client for the postings owned by aurora-ledger

Published surface

Verb Path
POST /api/v1/fraud/assessments
GET /api/v1/fraud/cases
POST /api/v1/fraud/rules
GET /api/v1/fraud/velocity

gRPC: proto/fraud/v1/fraud.proto, service FraudScoring.

Dependencies on other Aurora services

  • GET http://aurora-ledger/api/v1/ledger/postings
  • GET http://aurora-identity/api/v1/customers/profile
  • Kafka consumer on topic ledger.settled

Design notes

  • Velocity counters are advanced only from settled ledger events, never from authorisations, so a declined or reversed movement never inflates a subject's rate.
  • A profile lookup failure is not fatal: an assessment proceeds on transaction facts alone rather than failing the authorisation path.
  • The case-file state machine is closed. States absent from the transition table are terminal and their audit trail is sealed.

About

Aurora demo: real-time fraud and risk scoring (Go, gRPC + HTTP)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages