Download presentation
Presentation is loading. Please wait.
Published byKristin Bryan Modified over 9 years ago
1
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014
2
Announcements Congrats on finishing PA#1 (Mon 11pm) – TONIGHT! Late days (1 day units, 3 entire quarter) Setup Windows Azure free trial! Setup Now! http://www.windowsazure.com/en-us/pricing/free-trial/ Setup Bootcamp to Windows for PA2 http://support.apple.com/kb/ht1461 You will need Windows + Visual Studio for PA2 Email ihelp@uw.edu for more help.ihelp@uw.edu Wed Office Hours - 4/16 12:30pm to 1:20pm @ MGH 370H
3
Answer for Book class Bug! $name, $price
4
Answer, MySQL via PDO Take 10min Type this into online compiler
5
Information Architecture on AWS Feels like a debriefing : )
6
PA1 EC2 Index.php User RDS Player Database WHY? Information Architecture Diagram
7
PA1 EC2 Index.php + Player Database User This is faster But poor design Poor information architecture design
8
Scalability Scale compute instances separately from database instances Scale database when we need more storage Scale compute when we have more traffic Likely need more EC2 than RDS nodes especially with cache-ing
9
Scaling Data is Hard Scaling EC2 is easy, stateless Scaling RDS is hard – Data consistency – Data replication – Master/Slave? Sharding? Lesson: delay scaling data as much as possible. Scale data => downtime. – It’s like repairing a moving train
10
PA1 with a lot of users EC2 Index.php User RDS Player Database EC2 Index.php EC2 Index.php EC2 Index.php User
11
Similar to 3-tier architecture Poor Design Better Design!
12
Review EC2 = host your web site/web service code RDS = host your data (database)
13
What else can we do with AWS?
14
Load Balancer EC2 Index.php User RDS Player Database EC2 Index.php EC2 Index.php EC2 Index.php User What’s wrong with this?
15
Load Balancer EC2 Index.php User RDS Player Database EC2 Index.php EC2 Index.php EC2 Index.php What really happens…
16
Load Balancer Distributes traffic smartly. Done in hardware Re-route traffic when EC2 instances fail Auto-scales (AWS does this for you!) Secure (Security groups/settings) Every web site with significant traffic needs this
17
Load Balancer (orange) EC2 Index.php User RDS Player Database EC2 Index.php EC2 Index.php EC2 Index.php
18
Simple Storage Service (S3) MySQL (RDS) is great for small data that change often – NBA player stats, user data/account info S3 is better for large data that do not change often – Images, videos, css, javascript, etc – Best for read-only – Automatically scales! – Cheaper
19
DynamoDB NoSQL (non-relational) Auto-scaling, no limit to #GBs Huge Key-Value store – $myMap = array(“name” => “ck”, “age” => “28”) – Except in the cloud
20
CloudFront Content Delivery Network (CDN) Netflix => host large files closer to your location (edge node)
21
Message Queue Service Pass data between EC2 instances Web role vs. Worker role (future PA’s) – Website to search your facebook data – Login/front end UI/etc = Web role – But first time login, needs to crawl your facebook data, send a message to worker role to crawl. Similar in idea with AJAX except for work that takes > 30s (users won’t wait that long)
22
Redshift/Elastic Map Reduce Redshift = store tons of data EMR = analyze tons of data
23
Information Architecture Photos on S3 Product info on RDS User info on RDS Website on EC2 Load Balancer User purchase data/click data on Redshift/EMR => to produce better recommendations
24
Group Discussion! Groups of 3 Pick your favorite website Pick a page Draw the information architecture! (mine was a list, yours = diagram!) Presentation & submit on Canvas
25
Information Architecture Diagram EC2 Index.php User RDS Player Database EC2 Index.php EC2 Index.php EC2 Index.php
26
Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.