Request processing workflow
Request resolution
-
Incoming requests are analyzed to determine origin mapping
-
Host-header mappings take precedence over path-based mappings
-
Request resolver identifies the appropriate origin and transformation policy
-
Headers and authentication parameters are prepared for origin requests
Transformation resolution
-
Policy resolver retrieves transformation policies from in-memory cache
-
Conditional logic evaluates client hints and request headers
-
Explicit query parameters override policy-defined transformations
-
Final transformation parameters are validated and normalized
Image processing
-
Original image is fetched from the resolved origin (S3 or external)
-
Sharp library applies transformations in the specified order
-
Output format and quality are optimized based on client capabilities
-
Processed image is returned through the ALB to CloudFront