The Backend of LuckTrainingRoadmaps

Brazilian Betting Platform under Lei 14.790 (Chapter 46)

Update, November 2026. Brazil banned fixed-odds betting nationwide with Provisional Measure (MP) 1.394/2026, published on 25 September 2026. Licensed sites went offline on 6 October, and all authorizations were extinguished on 25 October with no refund of the BRL 30 million grant fee. The MP lapses on 4 March 2027 unless Congress votes it, and four STF actions are pending. This diagram is an engineering reference for the Law 14.790 design and for a possible re-opening, not a description of an operating market.
Brazilian Betting Platform under Lei 14.790 (Chapter 46) An architecture diagram generated by Archify. Player · Brazil only · Architecture component Player Brazil only Cloudflare Edge · geo-block, stateless · Architecture component Cloudflare Edge geo-block, stateless PAM · FastAPI, CPF ID · AWS sa-east-1 · data residency PAM FastAPI, CPF ID Betting Engine · Go, BRL-only · AWS sa-east-1 · data residency Betting Engine Go, BRL-only Wallet & PIX Gateway · PIX closed loop · AWS sa-east-1 · data residency Wallet & PIX Gateway PIX closed loop PIX PSP · BCB-contracted PSP · Architecture component PIX PSP BCB-contracted PSP Serpro / Datavalid · federal ID source · Architecture component Serpro / Datavalid federal ID source Identity & Eligibility · CPF + SIGAP + geo · AWS sa-east-1 · data residency Identity & Eligibility CPF + SIGAP + geo Odds Providers · Betradar/BetGenius · Architecture component Odds Providers Betradar/BetGenius SIGAP Gateway · signed XML, mTLS · SIGAP/COAF regulatory gateways SIGAP Gateway signed XML, mTLS Federal Regulators · SIGAP + COAF · Architecture component Federal Regulators SIGAP + COAF AML / Fraud · Neo4j graph, Python · SIGAP/COAF regulatory gateways AML / Fraud Neo4j graph, Python HTTPS session onboarding CPF check eligible odds feed reserve PIX QR, webhook reconcile settlement tx graph SIGAP XML Siscoaf AWS sa-east-1 · data residency SIGAP/COAF regulatory gateways Legend Frontend Backend Cloud Security External

Data Residency & Boundaries

  • • Authoritative records and keys stay in AWS sa-east-1 (Sao Paulo)
  • • The Cloudflare edge blocks non-Brazil traffic but holds no wallet state
  • • Azure Brazil South serves as disaster recovery, not primary residency

Closed Payment Loop

  • • Only PIX to previously registered, bettor-owned accounts is allowed
  • • Cards, boleto, and crypto are banned under the closed-loop model
  • • Dynamic EMV QR codes expire after 15 minutes; webhooks only trigger reconciliation

Regulatory Evidence Trail

  • • Settlement events stream through Kafka (KRaft) and Flink before SIGAP XML export
  • • AML graph analysis in Neo4j feeds COAF Siscoaf reporting
  • • Daily 04:00 BRT reconciliation compares ledger, PSP settlement, and segregated player funds