

# Choosing your deployment architecture


The Dynamic Image Transformation solution offers two deployment architectures, each optimized for different use cases, performance requirements, and cost considerations.

# Lambda Architecture


This cost-optimized serverless architecture is ideal for most image transformation workloads with moderate performance requirements.

 **Key characteristics:** 
+  **Image size limit**: Up to 6 MB per image
+  **Pricing model**: Pay-per-request with no idle costs
+  **Scaling**: Automatic scaling with built-in high availability
+  **Maintenance**: Fully managed serverless infrastructure
+  **Feature set**: Core image transformation capabilities

 **Best suited for:** 
+ Small to medium-sized images (under 6 MB)
+ Cost-sensitive deployments
+ Variable or unpredictable traffic patterns
+ Simple transformation requirements
+ S3 only origins

# ECS Architecture


This high-performance container-based architecture supports demanding workloads and provides access to all v8.0.0 features.

 **Key characteristics:** 
+  **Image size limit**: Up to 100 MB per image
+  **Pricing model**: Fixed infrastructure costs with usage-based scaling
+  **Scaling**: Configurable auto-scaling with t-shirt sizing options
+  **Feature set**: Complete v8.0.0 feature set including policies and non-S3 origins
+  **Management**: Administrative web interface included

 **Best suited for:** 
+ Large images (6 MB to 100 MB)
+ Enterprise deployments requiring advanced features
+ Non-S3 origin requirements
+ Consistent high-volume traffic
+ Complex transformation workflows
+ Migration from other CDN providers

 **Advanced capabilities:** 
+ Transformation policies with conditional logic
+ Multi-origin support (S3 and external)
+ Administrative interface for configuration management
+ In-memory caching for optimal performance

# Decision matrix and when to choose each



| Requirement | Lambda Architecture | ECS Architecture | 
| --- | --- | --- | 
|   **Image size**   |  ≤ 6 MB  |  ≤ 100 MB  | 
|   **Cost optimization**   |  Yes - Lowest cost  |  Higher cost  | 
|   **Transformation policies**   |  No  |  Yes  | 
|   **Non-S3 origins**   |  No  |  Yes  | 
|   **Administrative UI**   |  No  |  Yes  | 
|   **Auto-scaling**   |  Yes - Built-in  |  Yes - Configurable  | 