Back
EZ Works Architecture
Scalable AI Image Generation Pipeline
EZ Works Architecture
Scalable AI Image Generation Pipeline
CLIENT LAYER
Next.js Application
React 19 • Server Components
Workflow Builder
Node-based Interface
Real-time Preview
WebSocket Listener
Asset Gallery
S3 Image Loader
INFRASTRUCTURE
API Gateway
Next.js API Routes
• Auth (Clerk)
• Rate Limiting
• Validation
• Billing (Stripe)
Job Queue
Redis / BullMQ
Priority Queuing • Job Deduplication
Socket Server
Real-time Status Updates
AI PROCESSING
GPU Cluster
FastAPI Workers + ComfyUI
Worker Node (Python)
ComfyUI Engine
Load
KSampler
VAE Decode
S3 / R2 Storage Uploader
REST / POST
Push Job
Poll / Pop
Progress Events
TECHNOLOGIES
Next.js 16
FastAPI
Redis
ComfyUI
WebSocket