The Backend of LuckTrainingRoadmaps

Hub-and-Spoke Namespaces with Data Residency (Chapter 27c)

Hub-and-Spoke Namespaces with Data Residency (Chapter 27c) An architecture diagram generated by Archify. global-id · FastAPI, identity + exclusions · Hub namespace global-id FastAPI, identity + exclusions Redis · pub/sub event bus · Hub namespace Redis pub/sub event bus hub-postgres · identity DB · Hub namespace hub-postgres identity DB mailer · FastAPI, opt-in gated email · Hub namespace mailer FastAPI, opt-in gated email wallet-br · FastAPI, local wallet · Spoke-BR namespace wallet-br FastAPI, local wallet spoke-br-postgres · local BR data · Spoke-BR namespace spoke-br-postgres local BR data identity CRUD opt-in lookup publish exclusion events subscribe exclusion events wallet ops NetworkPolicy: denied Hub namespace Spoke-BR namespace Legend Backend Database Message bus

Hub Owns Identity

  • • global-id holds the identity graph and exclusion registry
  • • mailer gates transactional email on opt-in status

Compliance Boundary

  • • A NetworkPolicy denies wallet-br direct access to hub-postgres
  • • Spoke reads go through the global-id API, never the database

Event-Driven Propagation

  • • global-id publishes exclusion events to Redis pub/sub
  • • wallet-br subscribes and enforces exclusions locally