-
Notifications
You must be signed in to change notification settings - Fork 0
System Design ‐ Landscape
read
- GraphQL
- HashiCorp Vault
✅ EC2, VPC, EBS, and Load Balancers ✅ RDS, Aurora, and DynamoDB ✅ Route 53, CloudFront, and Global Accelerator ✅ Architecting for resilience, high availability, and disaster recovery ✅ Security best practices and cost optimization
read
- GraphQL
read
- Backends for frontend
- CQRS - Best matched with GraphQL
read
- GraphQL
read
- GraphQL
AWS EC2 - Auto Scaling Reference
Infra Setup
-
Create VPC
-
Create Internet Gateway (IG) to enable the VPC resources accessible via internet (option available under VPC) 2.1 Attach the newly created internet gateway (IG) to the VPC (option available under Actions menu)
-
Create Public Subnet - atleast 2 subnets in each availability zone to ensure maximum availability of the services (under the desired VPC) 3.1 Configure 2 different IP ranges in IPv$ subnet CIDR block to differentiate (ex: subnet1: 10.0.1.0/24, subnet2: 10.0.2.0/24)
-
Create Route Table (under VPC) - to direct network traffic based on the destination IP address, route table is also responsible for providing internet access 4.1 Subnet Association - associate the desired subnets with the route table created under the vpc 4.2 Provide routes - so that internet access is enabled for the subnet destination (ex: Destination: 0.0.0.0/0 - i.e any resources associated with the route table can be accessed via internet, all the public subnet resources will have access to internet, Target: Internet Gateway -> select the newly created internet gateway in step2)
-
Create Target Group (under load balancing option) - it is a logical group for pointing to the ec2 instances, scaling of ec2 instances happen under this target group 5.1 Configure the http protocol and port 5.2 Select the desired VPC 5.3 Select the health check endpoint - the one from ec2 instance (webserver) 5.4 Note: Once the target group is created, you will not find any ec2 instances, because the load balancer must be created in order for displaying the ec2 instances under this target group, so go ahead and create the target group record. 5.5 once record is created, it will show Load Balancer: None Associated (initially)
-
Create Load Balancer (under load balancing option) 6.1 Select Scheme: Internet-facing 6.2 Select the desired VPC 6.3 Select the subnets (min 2 subnets needed) 6.4 Select Security Group (define the access from internet for http, https, configure inbound and outbound rules)
AWS Disaster Recovery (DR) Plan