5. Cloud software development - amazon web-services
-
Upload
telerik-software-academy -
Category
Technology
-
view
350 -
download
1
description
Transcript of 5. Cloud software development - amazon web-services
![Page 1: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/1.jpg)
AmazonWeb Services
Nikolay TomitovTechnical TrainerSoftAcad.bg
http://clouddevcourse.telerik.com
&
![Page 2: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/2.jpg)
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
Topics Today
![Page 3: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/3.jpg)
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 …
What are These AWS ?
![Page 4: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/4.jpg)
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
AWS Key Features
![Page 5: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/5.jpg)
www.softacad.bg
Standard On-Demand Instances
Small (Default) $0.090 per Hour $0.115 per Hour
Medium $0.180 per Hour $0.230 per Hour
Large $0.360 per Hour $0.460 per Hour
Extra Large $0.720 per Hour $0.920 per Hour
Prices
http://aws.amazon.com/ec2/pricing/
![Page 6: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/6.jpg)
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
Elastic ComputeCloud (EC2)
![Page 7: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/7.jpg)
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 Elastic Block Store (EBS)
![Page 8: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/8.jpg)
Backups of your data lying in Amazon S3
Incremental
Loaded lazily
Shared
Amazon EBS Snapshots
![Page 9: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/9.jpg)
Amazon SimpleQueue Service
(SQS)
![Page 10: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/10.jpg)
Simple Queue Service
![Page 11: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/11.jpg)
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 timeConfigurable properties and access control
Messages are stored in distributed environment◦To facilitate reliable delivery
SQS Features
![Page 12: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/12.jpg)
www.softacad.bg
EC2 & SQS
![Page 13: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/13.jpg)
www.softacad.bg
EC2 & SQS
![Page 14: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/14.jpg)
www.softacad.bg
EC2 & SQS
![Page 15: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/15.jpg)
www.softacad.bg
EC2 & SQS
![Page 16: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/16.jpg)
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
Amazon Relational Database Service
(RDS)
![Page 17: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/17.jpg)
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
SimpleDB
![Page 18: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/18.jpg)
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
Simple StorageService (S3)
![Page 19: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/19.jpg)
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 )
Data Storage in Amazon ?
![Page 20: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/20.jpg)
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
Amazon Simple Notification
Service (SNS)
![Page 21: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/21.jpg)
DEMO APPLICATION
Live Demo
![Page 22: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/22.jpg)
Authoritative Domain Name System (DNS) service
Well documented and easy to setup
Amazon Route 53
![Page 23: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/23.jpg)
Web service for content delivery (CDN)
Supports edge locations
Map domain name to distribution
Fast, simple, elastic, reliable, global and cost-effective
Amazon CloudFront
![Page 24: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/24.jpg)
Supports Adobe’s Flash and Windows Media Services
Benefits to end users – close; easy to pause, rewind; different encodings
Wide variety of formats
CloudFront and Streaming
Distributions
![Page 25: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/25.jpg)
Hosting your most frequently accessed website components
Distributing software
Publishing popular media files
Some use cases for Amazon CloudFront
![Page 26: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/26.jpg)
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
Amazon ElastiCache
![Page 27: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/27.jpg)
Questions ?
![Page 28: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/28.jpg)
Follow the tutorial at: http://whatiscomingtomyhead.wordpress.com/2010/11/24/absolute-first-step-tutorial-for-amazon-web-services/
1. Sign up to Amazon AWS
2. Create an EC2 machine with Linux
3. Connect and install Apache Web Server
4. Test the Apache Web Server's Home Page
Submit the URL of your Apache Web server in the AWS cloud.
Homework: Try EC2
![Page 29: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/29.jpg)
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:
1. http://docs.amazonwebservices.com/AmazonS3/latest/gsg/
2. http://docs.amazonwebservices.com/AmazonS3/latest/dev/UploadInSingleOp.html
3. http://docs.amazonwebservices.com/AmazonS3/latest/dev/GettingObjectsUsingAPIs.html
Homework: Try S3
![Page 30: 5. Cloud software development - amazon web-services](https://reader035.fdocuments.net/reader035/viewer/2022081413/548b3163b47959ff698b4742/html5/thumbnails/30.jpg)
Free Trainings @ Telerik Academy
“Cloud Development" course @ Telerik Academy
clouddevcourse.telerik.com Telerik Software Academy
academy.telerik.com Telerik Academy @ Facebook
facebook.com/TelerikAcademy Telerik Software Academy Forums
forums.academy.telerik.com