Contents

Chapter 1

What's Included

This chapter covers the core features and capabilities of Event-Driven Architecture Kit.

What's Included

CategoryFilesDescription
Terraformsqs_sns_topology.tf, eventbridge_rules.tf, kinesis_streams.tf, variables.tfIaC for SQS/SNS fan-out, EventBridge routing, and Kinesis streaming
CloudFormationevent-bus-stack.yaml, sns-fanout-stack.yamlEventBridge custom bus and SNS fan-out pattern stacks
Scriptsevent_schema_validator.py, event_flow_visualizer.py, dlq_processor.pySchema validation, flow visualization, and DLQ replay tools
Docsarchitecture.md, event_patterns.md, troubleshooting_guide.mdArchitecture diagrams, pattern catalog, and debugging guide
Examplesevent_schemas/*.json, event_catalog.yamlEvent schemas for order, payment, and inventory domains

Architecture Patterns Implemented

Pattern 1: Fan-Out (SNS β†’ SQS)             Pattern 2: Event Bus (EventBridge)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”                                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Producer │──→ SNS Topic                    β”‚  Producer   │──→ EventBridge Bus
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚                            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚
                 β”œβ”€β”€β†’ SQS Queue A (Service A)                      β”œβ”€β”€β†’ Rule 1 β†’ Lambda
                 β”œβ”€β”€β†’ SQS Queue B (Service B)                      β”œβ”€β”€β†’ Rule 2 β†’ SQS
                 └──→ SQS Queue C (Analytics)                      └──→ Rule 3 β†’ Step Functions

Pattern 3: Streaming (Kinesis)               Pattern 4: DLQ + Replay
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”                                  β”Œβ”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”
β”‚ Producer │──→ Kinesis Stream               β”‚ SQS β”‚β”€β”€βœ—β”€β”‚ DLQ │──→ β”‚Replayβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β”‚                            β””β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”˜
                 β”œβ”€β”€β†’ Lambda Consumer                                  β”‚
                 β”œβ”€β”€β†’ Firehose β†’ S3                                    β–Ό
                 └──→ Analytics                                   Back to SQS
Chapter 2

Prerequisites

Follow this guide to get Event-Driven Architecture Kit up and running in your environment.

Prerequisites

  • AWS Account with permissions for SQS, SNS, EventBridge, Kinesis, Lambda, IAM
  • Terraform >= 1.5.0
  • Python >= 3.10 (stdlib only -- no pip packages needed)
  • AWS CLI v2 configured with appropriate credentials

Quick Start

1. Deploy SQS/SNS Fan-Out Topology (Terraform)

bash
cd terraform/
terraform init
terraform plan -var="environment=production" \
               -var="project_name=my-platform" \
               -var="alert_email=team@example.com"
terraform apply

2. Deploy EventBridge Event Bus (CloudFormation)

bash
aws cloudformation deploy \
  --template-file cloudformation/event-bus-stack.yaml \
  --stack-name my-event-bus \
  --parameter-overrides \
    ProjectName=my-platform \
    Environment=production \
  --capabilities CAPABILITY_IAM

3. Validate Event Schemas

bash
# Validate a single event against its schema
python scripts/event_schema_validator.py \
  --schema examples/event_schemas/order_events.json \
  --event '{"event_type": "order.created", "order_id": "ORD-001", "total": 99.99}'

# Validate all events in a file
python scripts/event_schema_validator.py \
  --schema examples/event_schemas/order_events.json \
  --events-file my_events.jsonl

4. Process Dead Letter Queue

bash
# Preview messages in DLQ (dry run)
python scripts/dlq_processor.py --queue-url https://sqs.eu-west-1.amazonaws.com/123456789012/my-dlq --dry-run

# Replay messages back to source queue
python scripts/dlq_processor.py --queue-url https://sqs.eu-west-1.amazonaws.com/123456789012/my-dlq --replay
Chapter 3
πŸ”’ Available in full product

Configuration Reference

Chapter 4
πŸ”’ Available in full product

FAQ

You’ve reached the end of the free preview

Get the full Event-Driven Architecture Kit and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $39 →
πŸ“¦ Free sample included — download another copy for the full product.
Event-Driven Architecture Kit v1.0.0 β€” Free Preview