About This Architecture
PhimStream is a serverless video streaming platform on AWS combining CloudFront CDN, AWS Amplify Next.js frontend, and Lambda microservices for authentication, movie search, watch progress, favorites, and VIP subscriptions. Data flows from users through API Gateway to specialized Lambda functions, with MongoDB Atlas as primary database, Redis ElastiCache for search/suggestion caching, and S3 for avatar and video file storage via pre-signed URLs. This architecture demonstrates serverless best practices including least-privilege IAM roles, EventBridge Scheduler for subscription expiry automation, and CloudWatch observability with SNS alerting to admins. Fork and customize this diagram on Diagrams.so to adapt the Lambda function distribution, caching strategy, or database topology for your streaming use case. The separation of concerns across Lambda functions enables independent scaling and deployment of auth, search, and user preference features.