The Backend of LuckTrainingRoadmaps

AcmeToCasino Platform Architecture (Chapter 10)

AcmeToCasino Platform Architecture (Chapter 10) An architecture diagram generated by Archify. Players · web + mobile apps · Architecture component Players web + mobile apps Edge · CDN + WAF + DNS · Architecture component · public Edge CDN + WAF + DNS public PSPs · primary + fallback · Architecture component PSPs primary + fallback API Gateway · Kong + Istio mTLS · private-app subnets · Istio mTLS mesh · OAuth2 / JWT API Gateway Kong + Istio mTLS OAuth2 / JWT Game Aggregation · Go provider adapters · private-app subnets · Istio mTLS mesh · GAL Game Aggregation Go provider adapters GAL PAM Wallet · FastAPI, event-sourced · private-app subnets · Istio mTLS mesh · idempotency keys PAM Wallet FastAPI, event-sourced idempotency keys Payment Engine · Go, multi-PSP failover · private-app subnets · Istio mTLS mesh · circuit breaker Payment Engine Go, multi-PSP failover circuit breaker RNG Service · Rust, HSM-seeded · Architecture component · certified RNG Service Rust, HSM-seeded certified Game Suppliers · NetEnt · Evolution · Pragmatic · Architecture component Game Suppliers NetEnt · Evolution · Pragmatic PostgreSQL · hub-and-spoke, PgBouncer · private-data subnets · per jurisdiction PostgreSQL hub-and-spoke, PgBouncer per jurisdiction Kafka + Flink · MSK, 3 AZ · private-data subnets Kafka + Flink MSK, 3 AZ Vault + CloudHSM · keys + dynamic secrets · isolated subnet: no IGW / NAT · isolated subnet Vault + CloudHSM keys + dynamic secrets isolated subnet AML / Fraud · ML scoring + Neo4j graph · Architecture component · risk matrix AML / Fraud ML scoring + Neo4j graph risk matrix HTTPS / TLS 1.3 WAF + geo route JWT, 15-min launch game signed launch URL debit / credit (round_id) wallet ops, Idempotency-Key outcome request PKCS#11 seed SQL via PgBouncer deposit / withdrawal API + signed webhook CDC wallet events consume + score private-app subnets · Istio mTLS mesh private-data subnets isolated subnet: no IGW / NAT Legend Backend Database Security Message bus External

Seven Logical Layers

  • • Edge, gateway, domain services, data, streaming, secrets and observability
  • • Regulated services (RNG, payments, AML) sit in compliance-accented tiers
  • • Brand isolation at PostgreSQL schema level, jurisdiction isolation per VPC

Hard Boundaries

  • • Public subnets hold only the load balancer and NAT
  • • Vault and CloudHSM live in an isolated subnet with no internet path
  • • Card data never enters the platform: PSP hosted fields and 3-DS off-platform

Money Integrity

  • • Wallet is event-sourced with idempotency keys end to end
  • • Suppliers only reach the wallet through the Game Aggregation Layer
  • • PSP calls trip a circuit breaker after 5 failures in 30 s and fail over