Microservices

Architecture

Decompose applications into small, independent functions:

  • API Gateway or ALB for routing
  • Lambda for individual service logic
  • Step Functions for orchestration
  • EventBridge for service communication

When to Use

This pattern is ideal when you need:

  • Independent team ownership
  • Different scaling requirements per service
  • Flexibility in technology choices
  • Rapid iteration and deployment

Considerations

  • Cold start latency for infrequently called functions
  • Function size limits (250MB deployment package)
  • Distributed tracing complexity
  • State management across functions