Deploy a 3-tier Python-Django based Chat Application. Tier 1 - Web Server (Nginx) Tier 2 - Application Server/Backend (Python Django) Tier 3 - Database (MySQL)A few pointers:
We begin by setting up a custom Virtual Private Cloud (VPC) to isolate our application resources.
my-vpc
10.0.0.0/16
This VPC provides a private networking environment for the 3-tier architecture. It allows us to define custom subnets, routing, security groups, and ensures better control over traffic flow between the application tiers (webserver, backend, and database).
The CIDR 10.0.0.0/16
provides a large IP range (65,536 addresses), ideal for creating multiple subnets. It ensures flexibility for tier separation and future scaling.
I’ve created 4 subnets within the my-vpc
to separate resources across public and private layers, ensuring both accessibility and security: