0% found this document useful (0 votes)
9 views26 pages

VND - Ms Powerpoint&Rendition 1

Uploaded by

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

VND - Ms Powerpoint&Rendition 1

Uploaded by

sadhvi2110020
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 26

Cloud Computing

(ROE-073)
Unit -3
Amazon S3
Santosh Kumar Upadhyay
Asst. Prof.
Department of CSE
AKGEC, Ghaziabad

1
Amazon S3 – An SOA
What is SOA?
• SOA – Service Oriented Architecture
• S – Service is basically an independent component that has a
certain function. (e.g. Viewing online bank statement, filling out an
app for an account). Emphasis on modularity and loose coupling
(implementation hidden)
• A – Architecture basically means this is not a technology but an
approach to software design
What is SOA?
• How do services talk to eachother?
• In the past through COM(Certified orientation and mobility)s or ORB(Object
Request Broker)s, but recent SOAs using Web Service (i.e. XML based
messaging)
• Adhoc philosophy
• Platform, language, OS independent.
• More recently, services are being offered for a price, like in the travel
industry, financing, using off the shelf software services
What is Amazon S3?
• S3 = Simple Storage Service
• A SOA which provides online storage using web services.
• Allows read, write, and delete permissions on objects
• Uses REST and SOAP protocols for messaging, so you can
use various development toolkits with S3.
How it Works

• Store data on Amazon’s distributed system containing multiple servers


within Amazon’s data center locations
• Data takes time to propagate
• Can store it in North America or Europe
• Amazon doesn’t offer you a GUI based tool to access your data. You can
use one of the several tools online or build one through APIs
Amazon S3 - Components
• Objects
• The information you're storing.
• Consist of
• metadata
• System Metadata – Request ID Headers, useful for Amazon staff
• User Metadata - 2kb Max. Date last modified, file size, or anything else you would
like.
• Data (5GB Max)
Amazon S3 - Components
• Buckets
• Container.
• Each object is inside of a container.
• Buckets are owned by an AWS account
• http://mybucket.s3.amazonaws.com
• If you have a file called hi.txt in the above bucket, it would be stored
in http://mybucket.s3.amazonaws.com/hi.txt
Amazon S3 - Components
• Keys
• Files are represented as unique keys within a bucket.
• In reality the key is basically your file name
• Example: http://bucket.s3.amazonaws.com/file.txt
• file.txt is the unique key
Amazon S3 - Operations
• Use either the REST or SOAP API to do the following and
more
• Create a bucket
• Write an object
• Read an object
• Delete an object (Be careful not to rapidly create and delete an
object)
• List the keys (files)
Amazon S3 – Build your own APP
Java Example Operations

• // Access Key – Identified you as the requester. Associated with your //


account, this is sent in plaintext in the message
//Secret Access Key – Used to generate a signature, not sent as //plaintext
AWSAuthConnection conn =
new AWSAuthConnection("[aws-access-key-id]", "[aws-secret-access-
key-id]");

Response response = conn.createBucket("[bucket-name]", null);

if (response.connection.getResponseCode() == 200)
{
// bucket was created
}
else
{
// something bad happened
}
Amazon S3 – Other Supported Languages

• C#, Perl, PHP, Ruby, Python


Cost
Summary

• SOA allows us to access services we want without having


to worry about language, platform, OS diversity
• Amazon S3 is an easy to use service that allows us to store
data on their facilities for a minimal cost, potentially using
it for things like torrenting, web hosting, ftp app, online
backups, etc.
References

• Amazon S3 Documentation
http://docs.amazonwebservices.com/AmazonS3/2006-03-01/gsg/
• Programming Amazon Web Services.
http://books.google.com/books?
id=xIauw5xWTO8C&pg=PA107&dq=amazon+s3&ei=Qbs8Scn4HpH6lQ
TAmeTvCg
• Wikipedia: Service Oriented Architecture.
http://en.wikipedia.org/wiki/Service-oriented_architecture

You might also like