8 AWS Architecture Design

architecture-overview

DNS - Route53

route53

  • where the traffic come from the internet
  • health check

Load Balencer

load-balancer

  • ELB = Elastic load balencer

has 2 veriation

  • ALB = application load balencer ( L7 level)
  • NLB = network load balencer ( L4 level)

Web Backend Layer

3 choice for Web Backend layer

EC2

ec2

  • you can run vertual machine

Lambda

lambda

  • serverless

  • no need to worry about infra

  • pay per invocation

ECS

ecs

  • middle between EC2 and lambda

Api Gateway

api-gateway

  • Api Gateway

  • Help to host apis

  • Feature - Api throttling

  • authorization on an api

Better than ELB

Elastic Cache

elasticache

  • 2 flaver

  • Memcached based or Redis

Database Services

Aurora

RDS DB

DynamoDB

dynamodb-1

dynamodb-2

Monitoring Services

monitoring

Cloud watch

  • it has many services
  • view diff matrics on ec2 machine what is cpu or memery uutilization
  • lambda How many invokation it has
  • logging

Cloud Trail

  • Cloud watch help to monitor sate of app

Where as Cloud Trail help to monitor infra

  • who is deleting
  • who is accessing what services and what are they doing to the services

Security - IAM

iam

Security management service

We create User or Role

User has policy by default user don’t have permission to do anything with aws unless you attach IAM policy to that user

Event Co-ordination

event-coordination

Event Co-ordination

Notification service

SNS = is pub sub service it publish notification to topic then many application (lambda) subscribe it

SQS queue = hold message

EventBridge = similar to SNS + more

Action - Whenever ES2 terminated

  • Whenever Lambda fun get updated

  • Whenever conf in dynamodb change

Step Fun = help to define work flow