Building a mobile, cloud, checkin app in 75 minutes - zero to hero.
From Zero to Cloud in 30 minutes
-
Upload
simone-brunozzi -
Category
Technology
-
view
1.681 -
download
2
description
Transcript of From Zero to Cloud in 30 minutes
![Page 1: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/1.jpg)
From Zero to Cloudin 30 minutes
Simone Brunozzi - AWS Technology Evangelist Europe
![Page 2: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/2.jpg)
A presentation is not an obligation.
Seth Godin
It's a privilege.
![Page 3: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/3.jpg)
Pleased to meet you
Technical backgroundLoves presentingLoves travelingLoves people
Simone, Italian, AWS technology Evangelist
Twitter: @simon (tag is #next09 )Linkedin Facebook Dopplr Friendfeed Amazon Flickr SmugMug
![Page 4: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/4.jpg)
Next09, May 6th, 2:00pm
01 - Audimax: "When Money Talks", Jeff Jarvis, Humair Haque02 - K2: "Social Media", Gary Hoff
04 - K4: "Startup presentations", Victor Henning, Daniel Shaffeld
What is happening right now?
03 - P1: "From zero to Cloud in 30 minutes", Simone Brunozzi
![Page 5: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/5.jpg)
Why?
Amazon.com?
![Page 6: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/6.jpg)
Share EconomyMartin Weitzman (1986): the more we share, the better
![Page 7: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/7.jpg)
Examples of "sharing"...The Merchant business, the "Risky Bet"
Amazon Business:RetailMerchantsDevelopers (AWS)
Amazon Web Services:> 540,000 registered users> 52 Billion objects
![Page 8: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/8.jpg)
Cloud ComputingTo help you share your ideas with the world
![Page 9: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/9.jpg)
The one slide sales pitchAnd yes: I hate bullet points :)
Amazon S3: durable storage on internetAmazon CloudFront: Content Delivery ServiceAmazon EC2: virtual servers on demandEBS for EC2: persistent storagePublic Data Sets: Human Genome, Census, Science, etcAmazon SQS: messaging systemElastic MapReduce: instant Hadoop cluster
http://aws.amazon.com
![Page 10: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/10.jpg)
La Pedrera - Casa Milà, Barcelona - Antonio Gaudi
Architectingin the Cloud
![Page 11: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/11.jpg)
Architecting in the Cloud
1. Design for failure2. Loose coupling sets you free3. Design for dynamism4. Security is everywhere5. Don't fear constraints6. Many storage options7. AWS ecosystem and community
I share lessons learned at Amazon.com
![Page 12: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/12.jpg)
1. Design for Failure
"Everything fails, all the time"Werner Vogels, CTO Amazon.com
and nothing will really fail
Avoid single points of failureAssume everything fails, and design backwards
![Page 13: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/13.jpg)
Design for Failure with AWSTools to make your life easier
Elastic IPAvailability Zones (AZ)Elastic Block Store (EBS)Real time monitoring
Heartbeat, Linux-HA, NFS, RAS: Reliability Availability Serviceability, BeowulfZFS, BTRFS, cluster file system, AndrewFS, CODA, Cluster Resource Manager
![Page 14: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/14.jpg)
2. Loosely Coupled Systems"Low, Loose, Weak" beats "High, Tight, Strong"
Loosely Coupled in time (message oriented middleware)Loosely Coupled in format (data transformation)In Web Services: implementation is hidden from the caller
Everything is a Black BoxDe-coupling for Hybrid modelsLoad-balancing clustersBetter scalingSQS prevents failures
![Page 15: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/15.jpg)
3. Design for Dynamism
No assumption on health, locationBootstrap, dynamic configurationManagement components to scaleArchitect for change
Panta Rei (everything flows, by Heraclitus Simplicius)
Scaling-out and scaling-in will change servers you talk to
![Page 16: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/16.jpg)
4. Security is everywhere
Physical is freeNetwork is easyThe rest can be added
Use it
Security groups (EC2 cluster) and IP rangesGroup-based rules to control access between App layersEncrypt S3, data transfer, file systems (efs)
![Page 17: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/17.jpg)
5. Don't fear constraints
More RAM? Shared distributed cache
Architectural constraints? Don't embrace, break them
Better DB performances? Multiple read-only / sharding / DB clustering
Your server is better? EC2 on demand.
Static IP?Boot script for software reconfiguration from SimpleDB
![Page 18: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/18.jpg)
Example: memcachedDistributed Memory Cache System (mem-cache-dee)
No auth/security; DB speedups with read reduction
f get_x (int id) { result = db_sel("SELECT * FROM users WHERE id = ?", id); return result; }
function get_x (int id) { result = memcached_fetch("userrow:" + id); if (!result) { result = db_sel("SELECT * FROM users WHERE id = ?", id); memcached_add("userrow:" + id, result); } return result; }
![Page 19: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/19.jpg)
6. Many Storage options
Amazon S3: large static objectsCloudfront: distributionSimpleDB: simple data indexing/queringAmazon EC2: local disc driveAmazon EBS: persistent storage
Lessons from Amazon.com
![Page 20: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/20.jpg)
7. AWS community and Ecosystem
AWS EcosystemAWS Community
Find help, guidance, assistance when you need it
![Page 21: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/21.jpg)
AWS community and EcosystemAn example?
![Page 22: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/22.jpg)
AWS community and EcosystemAn example?
![Page 23: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/23.jpg)
AWS community and EcosystemAn example?
![Page 24: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/24.jpg)
Warning!Ugly diagram ahead
![Page 25: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/25.jpg)
![Page 26: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/26.jpg)
Architecting in the CloudDid you like it?
1. Design for failure2. Loose coupling sets you free3. Design for dynamism4. Security is everywhere5. Don't fear constraints6. Many storage options7. AWS ecosystem and community
![Page 27: From Zero to Cloud in 30 minutes](https://reader036.fdocuments.net/reader036/viewer/2022081414/54b756e44a7959737d8b45d7/html5/thumbnails/27.jpg)
Twitter: #next09 @simon
Did you like it?