The primary serverless pipeline deploys a containerized application using AWS ECS (Fargate). The container image is stored in Amazon ECR, and commits to GitLab trigger the pipeline via webhooks. ECS orchestrates the containers, with traffic routed through an Application Load Balancer (ALB). The backend runs on Gunicorn, while Amazon Route 53 and AWS Certificate Manager (ACM) manage the custom domain and SSL certificates, ensuring secure HTTPS access.
The backup pipelines deploy the application directly to an AWS EC2 instance and a DigitalOcean Droplet. Jenkins automates the build, test, and deployment processes over SSH, and the application runs on Gunicorn in the DigitalOcean environment, with Nginx acting as a reverse proxy. AWS CodePipeline manages Backup Server 1, which runs on an EC2 instance using Apache with mod_wsgi, handling static files, database migrations, and service restarts. Certbot is used to manage SSL certificates, ensuring secure HTTPS access.
This deployment architecture delivers redundancy, automated failover capabilities, and synchronized multi-platform deployments, ensuring high availability and production-ready reliability even if one environment becomes unavailable.