|
| 1 | +# Tickets Without Crashes: The EventPro Story |
| 2 | + |
| 3 | +## The Business |
| 4 | + |
| 5 | +You're the Lead Architect at **EventPro** - a ticket sales platform for concerts, sporting events, |
| 6 | +and theater. The company has grown to 500K users, but faces a critical problem: **flash crowds**. |
| 7 | + |
| 8 | +When 50,000+ fans try to buy tickets simultaneously (like a Taylor Swift concert sale), the system |
| 9 | +collapses under the load. This isn't just a technical problem - it's a business crisis. |
| 10 | + |
| 11 | +## The Trigger |
| 12 | + |
| 13 | +> "We sold Taylor Swift tickets last month. 50,000 fans hit 'Buy' at 10:00 AM. Our API crashed in 30 |
| 14 | +> seconds. We oversold 200 tickets and had to refund furious customers. The CEO is asking why our |
| 15 | +> competitors handle this and we can't." |
| 16 | +> |
| 17 | +> — CTO, post-incident review |
| 18 | +
|
| 19 | +## Learning Objectives |
| 20 | + |
| 21 | +This scenario teaches event-driven architecture and asynchronous processing patterns for |
| 22 | +high-traffic applications: |
| 23 | + |
| 24 | +- [**Phase 1**: The Crashing Monolith](scenarios/eventpro/phases/phase-1-crashing-monolith.md) - |
| 25 | + Understanding the problem |
| 26 | +- [**Phase 2**: SQS Traffic Absorption](scenarios/eventpro/phases/phase-2-sqs-traffic-absorption.md) - |
| 27 | + Queues and decoupling |
| 28 | +- [**Phase 3**: API Gateway Protection](scenarios/eventpro/phases/phase-3-api-gateway-protection.md) - |
| 29 | + Rate limiting and caching |
| 30 | +- [**Phase 4**: Step Functions Workflows](scenarios/eventpro/phases/phase-4-step-functions-workflows.md) - |
| 31 | + Orchestration and Saga pattern |
| 32 | +- [**Phase 5**: EventBridge Routing](scenarios/eventpro/phases/phase-5-eventbridge-routing.md) - |
| 33 | + Event-driven integration |
| 34 | +- [**Phase 6**: Event-Driven Observability](scenarios/eventpro/phases/phase-6-observability.md) - |
| 35 | + Tracing and monitoring |
| 36 | + |
| 37 | +## Architecture Evolution Map |
| 38 | + |
| 39 | +```mermaid |
| 40 | +flowchart LR |
| 41 | + P1["Phase 1<br>Monolith<br>Problem"] --> P2["Phase 2<br>SQS<br>Queuing"] |
| 42 | + P2 --> P3["Phase 3<br>API GW<br>Protection"] |
| 43 | + P3 --> P4["Phase 4<br>Step Fn<br>Workflows"] |
| 44 | + P4 --> P5["Phase 5<br>EventBridge<br>Routing"] |
| 45 | + P5 --> P6["Phase 6<br>X-Ray<br>Observable"] |
| 46 | +
|
| 47 | + style P1 fill:#ffcdd2,color:#000 |
| 48 | + style P2 fill:#fff9c4,color:#000 |
| 49 | + style P3 fill:#fff9c4,color:#000 |
| 50 | + style P4 fill:#c8e6c9,color:#000 |
| 51 | + style P5 fill:#c8e6c9,color:#000 |
| 52 | + style P6 fill:#bbdefb,color:#000 |
| 53 | + linkStyle default stroke:#000,stroke-width:2px |
| 54 | +``` |
| 55 | + |
| 56 | +## AWS Services Covered |
| 57 | + |
| 58 | +| Phase | Primary Services | Key Concepts | |
| 59 | +| ----- | ------------------------- | ----------------------------------------- | |
| 60 | +| 1 | - | Race conditions, synchronous bottleneck | |
| 61 | +| 2 | SQS, DynamoDB | Queue decoupling, DLQ, conditional writes | |
| 62 | +| 3 | API Gateway, CloudFront | Throttling, usage plans, caching | |
| 63 | +| 4 | Step Functions, SNS | Saga pattern, workflow orchestration | |
| 64 | +| 5 | EventBridge | Event routing, fan-out, scheduling | |
| 65 | +| 6 | X-Ray, CloudWatch, Lambda | Distributed tracing, observability | |
| 66 | + |
| 67 | +## SAA Exam Domain Mapping |
| 68 | + |
| 69 | +This scenario primarily covers: |
| 70 | + |
| 71 | +- **Domain 2 (Resilient)**: Decoupling, fault tolerance, Saga pattern |
| 72 | +- **Domain 3 (High-Performing)**: Traffic absorption, caching, async processing |
| 73 | +- **Domain 1 (Secure)**: API protection, rate limiting, DDoS mitigation |
| 74 | + |
| 75 | +## How to Use This Guide |
| 76 | + |
| 77 | +Each phase includes: |
| 78 | + |
| 79 | +1. **Business Context** - What's happening with EventPro |
| 80 | +2. **Architecture Decision** - What we're building and WHY |
| 81 | +3. **Key Concepts** - SAA exam-relevant knowledge with verified numbers |
| 82 | +4. **Diagrams** - Visual representation of the architecture |
| 83 | +5. **Cross-References** - Links to related content in other scenarios |
| 84 | +6. **Exam Tips** - Key points for the SAA certification |
0 commit comments