AWS Architecture – Request Flow and Services: A Brief Introduction

 

1. Route 53 – DNS

When you send a request, for example, https://www.example.com, Route 53 can changes the domain name into an IP address. It is an AWS DNS service that helps direct users to the correct application endpoint.

2. CloudFront – CDN

CloudFront is a Content Delivery Network (CDN). It caches content at locations closer to users, helping deliver content faster and reduce latency. It is commonly used for images, videos, CSS, JavaScript, and other web content.

3. API Gateway

API Gateway acts as an entry point for APIs. It handles authentication and authorization, rate limiting, request routing to the right service, and request/response transformations.

4. Load Balancer

Once the API Gateway determines which backend service should handle the request, and the request reaches the backend service, it may go through a Load Balancer. The Load Balancer distributes incoming traffic among multiple healthy backend instances to improve availability and performance.

5. Backend Services

EC2: EC2 is a virtual machine in the cloud. It provides computing resources such as CPU, RAM, networking, and storage (typically attached through EBS). We can install an operating system and the necessary tools to run our applications.

ECS: ECS (Elastic Container Service) is a managed container orchestration service. It helps deploy, manage, and scale Docker containers. AWS also provides EKS, which is a managed Kubernetes service. ECS integrates with IAM, CloudWatch, and Elastic Load Balancing. We can use AWS X-Ray to trace requests as they pass through multiple services.

Lambda: Lambda is a serverless compute service. We provide our application code, and AWS runs it automatically when a specific event or trigger occurs. We don't need to manage the underlying servers. It is commonly used for event-driven processing and background tasks.

SQS: SQS (Simple Queue Service) is a message queuing service that allows applications to communicate asynchronously. It stores messages in a queue until an application or server processes them.

  • Standard Queue: Provides high throughput and supports large volumes of messages. Message ordering is not guaranteed, and duplicate delivery is possible.
  • FIFO Queue: Processes messages in the order they are sent, first in-first out, within a message group and supports message deduplication.

Bedrock: If an application needs to use Large Language Models (LLMs), it can call Amazon Bedrock, which provides access to various foundation models through APIs. SageMaker is a separate AWS service used to build, train, and deploy custom machine learning models.

6. Database Services

RDS: Amazon RDS is a managed relational database service. It supports popular database engines such as MySQL, PostgreSQL, Oracle, SQL Server, MariaDB, and Db2. Data is stored in tables with rows and columns, and relationships can be maintained using keys and joins.

Aurora: Amazon Aurora is an AWS relational database engine compatible with MySQL and PostgreSQL. It is designed for high performance, availability, and scalability.

DynamoDB: DynamoDB is a fully managed NoSQL database. It is highly scalable and stores data as key-value pairs and document data. Unlike relational databases, its data types is flexible, and different items can have different attributes.

DynamoDB stores data as key-value pairs and supports nested JSON-like structures such as Map, List, String Set, Number Set, etc. It does not store data as plain JSON files.

Other supported data types include String, Number, Binary, Boolean, Null, and Binary Set.

RDS / Aurora: Primarily use vertical scaling (increasing CPU, RAM, etc.) and support structured relational data. They also support horizontal read scaling through read replicas.

DynamoDB: Uses horizontal scaling and is highly scalable. It supports flexible, semi-structured or unstructured data using key-value and document data models.

Note: another example of nosql database: MongoDB

7. S3 – Object Storage

Amazon S3 is an object storage service. It stores objects such as images, videos, audio files, documents, and backups in buckets. It is commonly used to store static files and application data.

8. CloudWatch – Monitoring

CloudWatch is a monitoring service for AWS resources and applications such as EC2, Lambda, ECS, and SQS. It collects logs and metrics and allows us to create alarms. For example, it can send notifications when CPU utilization exceeds a specified threshold.

Amazon CloudWatch can trigger sending email notification when integrated with Amazon SNS (Simple Notification Service).

9. IAM – Identity and Access Management

IAM manages authentication and authorization in AWS. It controls who can access AWS resources and what actions they are allowed to perform through users, roles, and policies.

10. CI/CD Pipeline and CodeDeploy

CI/CD automates the software delivery process. It helps build, test, and deploy application code or Docker images. AWS CodePipeline orchestrates the pipeline, CodeBuild handles building and testing, and CodeDeploy helps automate deployments.

 

No comments:

Post a Comment