32
Cloud Computing and its usage at Slideshare -- Akash Agrawal

Cloud computing @ slideshare

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Cloud computing @ slideshare

Cloud Computingand its usage at Slideshare

-- Akash Agrawal

Page 2: Cloud computing @ slideshare

what the heck is

Cloud Computing?

Page 3: Cloud computing @ slideshare

Move to a new place?

You can either

Build a house or

Rent an apartment

Page 4: Cloud computing @ slideshare

• Size

Problems in building a new house

Page 5: Cloud computing @ slideshare

• Size• Customization

Problems in building a new house

Page 6: Cloud computing @ slideshare

• Size• Customization• Maintenance

Problems in building a new house

Page 7: Cloud computing @ slideshare

Why

Slideshare uses cloud computing?

Page 8: Cloud computing @ slideshare
Page 9: Cloud computing @ slideshare

Faster• Infrastructure on demand• Provision via APIs, not phone calls• Snapshot, clone and go. Repeat.

Page 10: Cloud computing @ slideshare

Cheaper• Reduced need for capital• OpEx not CapEx• Barrier to entry is much lower

Page 11: Cloud computing @ slideshare

Better• Focus on your core business• Infrastructure isn’t your

problem

Page 12: Cloud computing @ slideshare

How do we see it?

FAST

ELASTIC

Page 13: Cloud computing @ slideshare

What do we use?

Amazon Web Services (AWS)

• S3 (Storage)• EC2 (Computing)• SQS (Messaging)

Page 14: Cloud computing @ slideshare

What do we use?

Amazon Web Services (AWS)

• S3 (Storage)• EC2 (Computing)• SQS (Messaging)• SNS (Notification)• SDB (NoSQL DB)

Page 15: Cloud computing @ slideshare

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

Page 16: Cloud computing @ slideshare

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

Page 17: Cloud computing @ slideshare

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

Page 18: Cloud computing @ slideshare

S3 as Website

Page 19: Cloud computing @ slideshare

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

Page 20: Cloud computing @ slideshare

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

Page 21: Cloud computing @ slideshare

Visibility Timeout (SQS)

Page 22: Cloud computing @ slideshare

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.

Page 23: Cloud computing @ slideshare

SQS is not FIFO

Page 24: Cloud computing @ slideshare

Simple Notification Service (SNS)

Page 25: Cloud computing @ slideshare

Simple Notification Service (SNS)

• Topics• Owners• Subscribers• Publishers

Page 26: Cloud computing @ slideshare

Simple Notification Service (SNS)

• HTTP• HTTPS• Email• Email (json)• SQS• SMS

Page 27: Cloud computing @ slideshare

Simple Notification Service (SNS)

• Monitoring alert system (like Nagios)• News Distribution• EC2 control• Start stop services

Page 28: Cloud computing @ slideshare

Reduce cost using

SNS – RRS Integration

Page 29: Cloud computing @ slideshare

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

Page 30: Cloud computing @ slideshare

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

Page 31: Cloud computing @ slideshare

Amazon SimpleDB (SDB)

Demo

Page 32: Cloud computing @ slideshare

Questions?