330 likes | 805 Views
Amazon Web Services. Nikolay Tomitov Technical Trainer SoftAcad.bg. Topics Today. What are Amazon Web services (AWS) ? What’s cool when developing with AWS ? Architecture of AWS Quota & Pricing Amazon Web Services Demo application Deploying Simple Applications.
E N D
AmazonWeb Services Nikolay Tomitov Technical Trainer SoftAcad.bg
Topics Today What are Amazon Web services (AWS) ? What’s cool when developing with AWS ? Architecture of AWS Quota & Pricing Amazon Web Services Demo application Deploying Simple Applications www.softacad.bg
What are These AWS ? • Simple Storage Service (S3) • Provides limitless storage of large files in the cloud • Elastic Compute Cloud (EC2) • Provides virtual machine instances called Amazon Machine Instances • Ability to create AMI’s on the fly according to demand • Simple Queue Service (SQS) • Provides reliable messaging between any applications using AWS • Amazon EBS • Amazon Cloud Front • Think of this as a simple web server for static content • Amazon SimpleDB, and others … www.softacad.bg
AWS Key Features Services are provided over Web Communication is web-service based Communication interface API has been designed to be simple and effective Three kinds of interfaces: REST, Query & SOAP based Authentication embedded in each message www.softacad.bg
Prices http://aws.amazon.com/ec2/pricing/ www.softacad.bg
Elastic ComputeCloud (EC2) www.softacad.bg Ability to increase or decrease capacity within minutes Ability to commission one, hundreds, or even thousands of server instances simultaneously A web service API to control the scaling of instances depending on your needs A “pay only for what you use” pricing model
Amazon Elastic Block Store (EBS) www.softacad.bg • Highly available and highly reliable storage volumes • From 1GB to 1TB • Mounted as devices by EC2 instances • Use them as hard drives • Created in specific availability zone • Automatically replicated • Performance metrics (Amazon CloudWatch) • $0.10 per 1 million I/O requests you make to your volume
Amazon EBS Snapshots www.softacad.bg Backups of your data lying in Amazon S3 Incremental Loaded lazily Shared
Amazon SimpleQueue Service (SQS) www.softacad.bg
Simple Queue Service www.softacad.bg
SQS Features www.softacad.bg • Provides reliable messaging between any applications using AWS • Multiple writers and readers • Multiple parts of your system can send or receive messages at the same time • Configurable properties and access control • Messages are stored in distributed environment • To facilitate reliable delivery
EC2 & SQS www.softacad.bg
EC2 & SQS www.softacad.bg
EC2 & SQS www.softacad.bg
EC2 & SQS www.softacad.bg
Amazon Relational Database Service (RDS) www.softacad.bg • Web service that makes it easy to set up, operate, and scale a relational database in the AWS cloud • Currently supporting Oracle and MySQL • Simple to deploy • Scalable & reliable • Secure
SimpleDB www.softacad.bg Stores textual information in a simple database structure Does not mandate schema for database Indexes information to facilitate faster query Stores data securely and reliably across multiple data centers No limits on amount of data
Simple StorageService (S3) www.softacad.bg • Offers secure online storage system for any kind of data • Data is universally accessible over the Web • No limits on amount of data, longevity or bandwith for transfer or publish • Scalable, distributed system • Stores data redundantly across geographically separated data centers
Data Storage in Amazon ? www.softacad.bg A relational database service with minimal administration ? ( Amazon RDS ) A fast, highly scalable NoSQL database service ? ( Amazon DynamoDB ) A NoSQL database service for smaller datasets ? ( Amazon SimpleDB ) A relational database you can manage on your own ( Amazon EC2 + Amazon EBS )
Amazon Simple Notification Service (SNS) www.softacad.bg Easy setup, operate and send notifications from the cloud ! Highly scalable, flexible, cost-effective Broad protocol choice (HTTP,email, SMS, etc.) Best for event-driven workflows “Pull” mechanism
DEMO APPLICATION Live Demo www.softacad.bg
Amazon Route 53 www.softacad.bg Authoritative Domain Name System (DNS) service Well documented and easy to setup
Amazon CloudFront www.softacad.bg Web service for content delivery (CDN) Supports edge locations Map domain name to distribution Fast, simple, elastic, reliable, global and cost-effective
CloudFront and Streaming Distributions www.softacad.bg Supports Adobe’s Flash and Windows Media Services Benefits to end users – close; easy to pause, rewind; different encodings Wide variety of formats
Some use cases for Amazon CloudFront www.softacad.bg Hosting your most frequently accessed website components Distributing software Publishing popular media files
Amazon ElastiCache www.softacad.bg The problem with databases ? Memcached solution Implements Memory Caching system by caching repetitive queries Easy to setup, manage, scale Each cluster has one or more cache nodes
Questions ? www.softacad.bg
Homework: Try EC2 www.softacad.bg Follow the tutorial at: http://whatiscomingtomyhead.wordpress.com/2010/11/24/absolute-first-step-tutorial-for-amazon-web-services/ Sign up to Amazon AWS Create an EC2 machine with Linux Connect and install Apache Web Server Test the Apache Web Server's Home Page Submit the URL of your Apache Web server in the AWS cloud.
Homework: Try S3 www.softacad.bg Create a simple application in C#, Java, PHP or other language to upload / download a file in Amazon S3. Follow these tutorials: http://docs.amazonwebservices.com/AmazonS3/latest/gsg/ http://docs.amazonwebservices.com/AmazonS3/latest/dev/UploadInSingleOp.html http://docs.amazonwebservices.com/AmazonS3/latest/dev/GettingObjectsUsingAPIs.html