Production-ready reference implementations for AWS serverless architecture patterns. Each pattern demonstrates event-driven design, decoupled components and infrastructure as code principles.
Path: /sqs-fanout-messaging
Multi-queue processing system demonstrating SQS fanout pattern with independent queue readers for email notifications, shipping fulfillment and inventory management.
Technologies: Amazon SQS, PHP, CloudWatch
Use Case: Decoupled order processing workflow
Key Features:
- Independent queue consumers
- Error handling and message visibility
- Scalable message processing
Path: /lambda-image-processing
Automated image compression pipeline triggered by S3 upload events. Lambda function processes images and stores compressed versions in a separate bucket.
Technologies: AWS Lambda (Node.js), S3, CloudWatch Events
Use Case: Automatic image optimization for web applications
Key Features:
- Event-driven architecture
- Automatic scaling
- Cost-effective processing
These patterns follow cloud-native best practices:
- Event-Driven Design - Components react to events rather than polling
- Loose Coupling - Services communicate through managed queues and events
- Scalability - Automatic scaling based on demand
- Cost Optimization - Pay only for actual usage
- Infrastructure as Code - Repeatable deployments with Terraform
- AWS Services: Lambda, SQS, S3, CloudWatch
- Languages: Node.js, Python, PHP
- Infrastructure: Terraform
- Monitoring: CloudWatch Logs & Metrics
Each pattern directory contains:
- README.md - Pattern-specific documentation
- Architecture diagram - Visual representation
- Source code - Implementation files
- Terraform configs - Infrastructure definitions (where applicable)
Navigate to individual pattern directories for detailed setup instructions.
aws-serverless-patterns/
├── README.md
├── LICENSE
├── composer.json
├── .gitignore
├── sqs-fanout-messaging/
│ ├── README.md
│ ├── email-reader.php
│ ├── shipping-reader.php
│ ├── inventory-reader.php
│ └── terraform/
│ ├── main.tf
│ ├── variables.tf
│ ├── outputs.tf
│ └── README.md
└── lambda-image-processing/
├── README.md
├── upload.php
├── lambda/
│ ├── index.js
│ └── package.json
└── terraform/
├── main.tf
├── variables.tf
├── outputs.tf
└── README.md
E-commerce Order Processing - SQS fanout pattern
Media Asset Management - Image processing pipeline
Microservices Communication - Event-driven messaging
Automated Workflows - S3 event triggers
- Amazon SQS - Fully managed message queuing
- AWS Lambda - Serverless compute
- Amazon S3 - Object storage with event notifications
- CloudWatch - Monitoring and logging
MIT License - see LICENSE file for details
Built with ❤️ for production serverless architectures on AWS