The Backend of LuckTrainingRoadmaps

Distributed Event Processing Pipeline (Chapter 28a)

Distributed Event Processing Pipeline (Chapter 28a) A data-flow diagram generated by Archify. 01 / Ingest 02 / Dedup 03 / Backbone 04 / Consumers Casino Events · bet / payment / withdrawal · 01 / Ingest Casino Events bet / payment / withdrawal Apache Iggy · low-latency pilot stream · 02 / Dedup · not source of truth Apache Iggy low-latency pilot stream not source of truth Idempotency Manager · dedup key store · 02 / Dedup Idempotency Manager dedup key store Workers + D1 · edge idempotency keys · 02 / Dedup · sub-50ms checks Workers + D1 edge idempotency keys sub-50ms checks Kafka · regulated backbone · 03 / Backbone Kafka regulated backbone Redis Pub/Sub · session state propagation · 03 / Backbone Redis Pub/Sub session state propagation Fraud / SIGAP / Audit · fraud / SIGAP / audit · 04 / Consumers Fraud / SIGAP / Audit fraud / SIGAP / audit GLI-21 Boundary Tests · replay, tamper, JWT swap · 04 / Consumers GLI-21 Boundary Tests replay, tamper, JWT swap bet-placed / withdrawal events regulated audit trail edge key persistence, sub-50ms edge idempotency deduped, exactly-once regulated backbone session state propagation real-time session sync bridge + offset file iggy_to_kafka_bridge.py fraud / SIGAP / retention consume audit evidence replay protection boundary test GLI-21 v2.2 Legend primary data policy / PII async batch data store data flow

Idempotency Everywhere

  • • Idempotency manager dedups payment and game-round events; D1 persists keys at the edge under 50 ms

Kafka Remains the Backbone

  • • Fraud, SIGAP, retention, and audit consumers read from Kafka; Redis only propagates session state

Iggy Pilot, Not Source of Truth

  • • Apache Iggy runs a low-latency telemetry stream; the bridge forwards events into Kafka with an offset file