Advanced
Overview

Advanced Topics

This section covers advanced topics for production deployment and scaling Sunday.

Overview

While Sunday works great for development and small deployments, scaling to production requires understanding the current architecture's limitations and implementing appropriate solutions.

Contents

Current Limitations

Understand the architectural decisions made for rapid development and their implications:

  • In-memory rate limiting
  • Database connection patterns
  • Client-side state management
  • File storage coupling

Scalability Guide

Learn how to make Sunday production-ready:

  • Required code changes
  • Caching strategies
  • Database optimization
  • Horizontal scaling patterns

AWS Deployment

Complete guide to deploying on AWS:

  • Detailed architecture diagrams
  • Service-by-service breakdown
  • Infrastructure as Code
  • Security and cost considerations

When to Scale

Consider implementing these changes when:

MetricThreshold
Concurrent users> 100
API requests/minute> 1,000
Data size> 10 GB
Uptime requirement> 99.9%

Architecture Comparison