0% found this document useful (0 votes)
12 views34 pages

AWS Database Services Overview

The document provides an overview of various AWS database services, including AWS Lambda, Amazon DynamoDB, Amazon ECS, Amazon S3 Glacier, Amazon Kinesis, Amazon Redshift, Amazon EMR, and AWS Disaster Recovery. Each service is explained using analogies to simplify understanding, highlighting their functionalities and use cases. Additionally, it discusses the features, advantages, and disadvantages of AWS Lambda, emphasizing its serverless nature and cost efficiency.

Uploaded by

Balaji
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views34 pages

AWS Database Services Overview

The document provides an overview of various AWS database services, including AWS Lambda, Amazon DynamoDB, Amazon ECS, Amazon S3 Glacier, Amazon Kinesis, Amazon Redshift, Amazon EMR, and AWS Disaster Recovery. Each service is explained using analogies to simplify understanding, highlighting their functionalities and use cases. Additionally, it discusses the features, advantages, and disadvantages of AWS Lambda, emphasizing its serverless nature and cost efficiency.

Uploaded by

Balaji
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

AWS for Cloud Computing

Module 3: AWS Database services


• AWS Lambda
• Amazon Dynamo DB, Amazon ECS (Elastic Container Service)
• Amazon S3 Glacier, Amazon Kinesis,
• Amazon Redshift, Amazon EMR (Elastic MapReduce),
• AWS Disaster Recovery and Backup.
1. AWS Lambda : Analogy

Think of AWS Lambda like a food delivery


kitchen (cloud kitchen) — you don’t own the
restaurant (server), you just send in an order
(code) when needed, and the kitchen cooks
only when there’s an order.
No rent, no permanent staff — just pay per
meal prepared.
AWS Lambda

•“If you run a snack stall only during festivals,


would you rent a shop full-time or set it up
only during those days?” → Relates to
Lambda's event-driven nature.
AWS Lambda
• When a new photo is uploaded, Lambda can
automatically resize it for the web. (S3 + Lambda
workflow)
2. Amazon DynamoDB : Analogy

•DynamoDB is like an ultra-fast library’s


reference desk — you ask for a specific
book (data) by its title (key), and they
hand it to you instantly, no searching
shelves (no SQL joins needed).
2. Amazon DynamoDB : Analogy

•“When you Google search


something, do you expect it in
seconds or minutes?” → DynamoDB
delivers in milliseconds.
3. Amazon ECS (Elastic Container Service) :
Analogy
•ECS is like a shipping port — containers
(apps) arrive in standard sizes and can be
loaded/unloaded anywhere in the world
without repacking (Docker
containerization).
3. Amazon ECS (Elastic Container Service)

•It can be “packed” once and “shipped”


anywhere without changing the code.
4. Amazon S3 Glacier : Analogy
• S3 Glacier is like putting old clothes in deep
storage — you don’t need them now, but you
might want them later.
• It’s cheaper than keeping them in your main
wardrobe (S3 Standard).
4. Amazon S3 Glacier
• You can think of things in your home, you store
for years but rarely touch — relate that to
archival data.
5. Amazon Kinesis : Analogy
• Kinesis is like CCTV live streaming — it
continuously processes data as it’s generated,
rather than waiting for a full file to be created.
• “When watching a cricket match, would you like
updates every ball or only after the match
ends?” → Relates to real-time data streaming.
6. Amazon Redshift : Analogy
• Redshift is like a giant kitchen designed to serve
thousands of meals at once — optimized for big
jobs (data warehousing) rather than small snacks
(simple queries).
• Like doing filter operation manually vs. in Excel.
• Redshift does this with billions of rows instantly.
Amazon EMR (Elastic MapReduce) : Analogy
• EMR is like hiring a temporary team of
thousands of interns to read and summarize
millions of newspapers overnight (big data
processing).
8. AWS Disaster Recovery & Backup : Analogy

•Disaster Recovery is like having a spare key


to your house stored with a friend — if your
key (server) is lost, you can still get in.
•e.g., a company losing data due to flood,
saved by AWS backups.
Summary
AWS Lambda
• Analogy: Like hiring a food truck only when there’s
an event.
• No rent, no electricity bills when not in use.
• You pay only for the time it’s cooking (executing
code).
• Example: Automatically generate thumbnails
whenever a photo is uploaded to S3.
• Netflix uses AWS Lambda for real-time encoding and
backups.
Amazon DynamoDB
• Analogy: Like a vending machine — you press a
button (key), and instantly get your snack (data)
without browsing shelves.
• Example: Tracking live bus locations for a transit
app.
• Used by Amazon’s e-commerce platform to
handle millions of orders per second during
peak sales.
Amazon ECS (Elastic Container Service)
• Analogy: Like shipping containers for goods —
standardized so they can be transported and
used anywhere without repacking.
• Example: Deploying a web app in a Docker
container so it runs identically on your laptop
and in the cloud.
• Spotify uses container orchestration to manage
its music streaming services.
• Running a web app in a Docker container means you
package the app and everything it needs into one
bundle so it behaves the same no matter where it’s
run.
• This ensures it works identically on your laptop and in
the cloud without compatibility issues.
Amazon S3 Glacier
•Analogy: Like storing old clothes in a
faraway warehouse. Cheaper, but takes time
to retrieve.
•Example: Archiving university student
records for 20 years.
•Designed for “11 nines” durability —
99.999999999%.
Amazon Kinesis
• Analogy: Like watching a live cricket score feed
— updates continuously rather than waiting for
the end of the match.
• Example: Processing Twitter hashtags in real
time.
• NASA used streaming data pipelines for the Mars
rover telemetry.
Amazon Redshift

•Analogy: Like a super-fast librarian who can


search millions of books in seconds.
•Example: A supermarket chain analyzing
sales data from 500 stores.
•Redshift is one of the fastest-growing AWS
services because of its speed and scalability.
Amazon EMR (Elastic MapReduce)
• Analogy: Like hiring thousands of interns
overnight to read and summarize every
newspaper in the world.
• Example: Analysing traffic camera images across
a city to find accident hotspots.
• EMR can process petabytes of data for as low as
a few dollars an hour.
AWS Disaster Recovery & Backup
•Analogy: Like having a spare house key at a
trusted friend’s place.
•Example: Bank systems that can fail over to
a backup data center in seconds.
•AWS has multiple recovery options — from
seconds (pilot light) to hours (cold backup)
— depending on cost and urgency.
AWS Lambda
• AWS Lambda a serverless compute service.
• This service lets you run code without needing to think
about servers.
• It lets you focus on what's most important, such as
making a great application.
• You only pay for the compute time that you use.
What Are Lambdas Functions?
• AWS lambda are server-less compute functions are fully managed
by the AWS where developers can run there code without worrying
about servers.
• AWS lambda functions will allow you to run the code with out
provisioning or managing servers.
• Once you upload the source code file into AWS lambda in the form
of ZIP file then AWS lambda will automatically run the code
without you provision the servers and also it will automatically
scaling your functions up or down based on demand.
• AWS lambda are mostly used for the event-driven application for
the data processing Amazon S3 buckets, or responding to HTTP
requests.
How AWS Lambda Works
[Link] your code to Lambda
[Link] the code ready to trigger an event- Eg, S3 or EC2
[Link] code only runs when triggered- such as HTTP requests
from the Amazon API gateway, table updates in Amazon
DynamoDB, and state transitions.
[Link] only when your code is running
Use Cases Of AWS (Amazon Web
Services) Lambda Functions
[Link] Processing: AWS lambda can be triggered by using simple storage
services (S3). Whenever files are added to the S3 service Lambda data
processing will be triggered.
[Link] Applications: You can combine both web applications and AWS
lambda which will scale up and down automatically based on the
incoming traffic.
[Link] (Internet of Things) applications: You can trigger the AWS lambda
based on certain conditions while processing the data from the device
which are connected to the IOT applications. It will analyze the data which
are received from the IOT application.
[Link] Processing: Lambda functions can be integrated with the Amazon
kinesis to process real-time streaming data for application tracking, log
filtering, and so on.
Features Of AWS (Amazon Web
Services) Lambda Functions
• AutoScaling and High Availability: - High availability can be
achieved by scaling the application.
• Serverless Execution: - There is no need for provisioning the
servers manually in AWS.
• Pay-per-use-pricing: - AWS will charge you only for the
time that time compute engine was active.
• Supports different programming languages: Python, Java,
C+, Node js etc
• Integrates with other AWS Services: S3, EC2, SQS, SNS,
RDS
Pricing
Advantages
• Cost Efficiency: It only charges for the compute that is only for
running known as pay-as-you-go model.
• Automatic Scaling: AWS Lambda automatically helps in scaling your
applications by running code in response to each trigger.
• Reduced Operational Compliance: It allows the developers to focus
on building your logic, the aws itself while take care of the
infrastructure.
• Integration with AWS Services: It provides a seamlessly integration
with other AWS services
Disadvantages of AWS (Amazon Web
Services) Lambda Function
• Latency while starting:
• Limited control of infrastructure:
• Time Limit:
• Limited Computing and Memory Options:

You might also like