Date post: | 14-Jan-2015 |
Category: |
Technology |
Upload: | akash-agrawal |
View: | 1,358 times |
Download: | 0 times |
Cloud Computingand its usage at Slideshare
-- Akash Agrawal
what the heck is
Cloud Computing?
Move to a new place?
You can either
Build a house or
Rent an apartment
• Size
Problems in building a new house
• Size• Customization
Problems in building a new house
• Size• Customization• Maintenance
Problems in building a new house
Why
Slideshare uses cloud computing?
Faster• Infrastructure on demand• Provision via APIs, not phone calls• Snapshot, clone and go. Repeat.
Cheaper• Reduced need for capital• OpEx not CapEx• Barrier to entry is much lower
Better• Focus on your core business• Infrastructure isn’t your
problem
How do we see it?
FAST
ELASTIC
What do we use?
Amazon Web Services (AWS)
• S3 (Storage)• EC2 (Computing)• SQS (Messaging)
What do we use?
Amazon Web Services (AWS)
• S3 (Storage)• EC2 (Computing)• SQS (Messaging)• SNS (Notification)• SDB (NoSQL DB)
Simple Storage Service (S3)
Storage is organized in buckets• Like a namespace for the objects it contains• Accessible via
http://bucketname.s3.amazonaws.com
It’s not file storage; it’s a key-value store
• Like a big hash table or dictionary• Number of objects you can store is unlimited• Key-value pairs• Accessible via
http://bucketname.s3.amazonaws.com/keyname
Simple Storage Service (S3)
• Implicit BitTorrent seeding for all keys• 5TB limit for each key• Official API to operate on buckets in different
languages and for different platforms• Public, private and other custom access for keys• You may choose what kind of reliability you
want; more reliable more cost, less reliable less cost
Reduced Redundancy Storage (RRS)
• Standard Storage provides 99.999999999% durability
• $0.140 / GB for first 1 TB / month
• RRS provides 99.99% durability• $0.093 / GB for first 1 TB / month
S3 as Website
Redirection from S3
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-
1"> <META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://tech-
queries.blogspot.com/"><title>Programming Interviews</title></head></html>
Try accessing http://slideshare.s3.amazonaws.com/test.jpg
Simple Queue Service (SQS)
• storing messages as they travel between computers
• move data between distributed components• Doesn’t require each component to be always
available• 64 KB for a single message• Queue length can be infinite.• Messages can be retained in queues for up to 14
days• Messages can be sent and read simultaneously
Visibility Timeout (SQS)
Visibility Timeout (SQS)
• Keeps multiple computers from processing the same message at once.
• If this system fails to process the message, then it will be read by another call as soon as the visibility timeout passes.
SQS is not FIFO
Simple Notification Service (SNS)
Simple Notification Service (SNS)
• Topics• Owners• Subscribers• Publishers
Simple Notification Service (SNS)
• HTTP• HTTPS• Email• Email (json)• SQS• SMS
Simple Notification Service (SNS)
• Monitoring alert system (like Nagios)• News Distribution• EC2 control• Start stop services
Reduce cost using
SNS – RRS Integration
Amazon SimpleDB (SDB)
• Highly available, flexible, and scalable non-relational data store
• No-touch scaling• No need to anticipate and respond to changes in
request load or database utilization• No rigid Schema• Data is stored as key-value pairs • No normalization, joints, schemas etc as we see
in a relational DB
Amazon SimpleDB (SDB)
• Domain (table) • A maximum of 250 domains of 10 GB each
• Item (row) • Item is identified by a unique key or
identifier)
• Attribute (column)
• Value
Amazon SimpleDB (SDB)
Demo
Questions?