Cloud Computing, Web Services, and the New Web Stack June 19, 2009 - - PowerPoint PPT Presentation

cloud computing web services and the new web stack
SMART_READER_LITE
LIVE PREVIEW

Cloud Computing, Web Services, and the New Web Stack June 19, 2009 - - PowerPoint PPT Presentation

Cloud Computing, Web Services, and the New Web Stack June 19, 2009 Boulder, Colorado Stuart Sierra Columbia Law School Program on Law & Technology columbialawtech.org altlaw.org The LAMP Stack The LAMP Stack Physical File-based


slide-1
SLIDE 1

Cloud Computing, Web Services, and the New Web Stack

June 19, 2009 Boulder, Colorado Stuart Sierra Columbia Law School Program on Law & Technology columbialawtech.org altlaw.org

slide-2
SLIDE 2

The LAMP Stack

slide-3
SLIDE 3

The LAMP Stack Physical Server File-based Web Server Relational Database Embedded Scripting Language

slide-4
SLIDE 4

The New Web Stack

Virtual Servers Web Proxy Document Database REST Framework

slide-5
SLIDE 5

Virtualization

slide-6
SLIDE 6

Cloud Infrastructure

slide-7
SLIDE 7

Amazon EC2

Cost

RAM Processor Small

$0.10 / hour

1.7 GB 1 core Large

$0.40 / hour

7.5 GB 2 cores Extra-Large

$0.80 / hour

15 GB 4 cores

EC2= Elastic Compute Cloud

slide-8
SLIDE 8

EC2

  • “Instance” - one virtual machine
  • “Image” - OS and root file system
  • “Elastic Block Store” (EBS) - virtual disks
  • “Availability Zone” - data center location
  • “Elastic IP” - assignable public IP address
  • “Elastic Load Balancing”
slide-9
SLIDE 9

Amazon EC2

Elastic IP Load Balancer Application Servers DB Servers EBS Volumes

slide-10
SLIDE 10

Scalability

“UP” “OUT” “IN” “DOWN”

slide-11
SLIDE 11

Scalability

bigger machines more machines fewer machines smaller machines

slide-12
SLIDE 12

Document Databases

slide-13
SLIDE 13

Relational

  • Rows
  • Tables
  • Schema
  • Atomic values
  • Normalization
  • Joins
  • Documents
  • One namespace
  • No schema
  • Multiple values
  • Denormalization
  • Maps

Document

slide-14
SLIDE 14

Relational

  • Atomicity
  • Consistency
  • Isolation
  • Durability
  • Basically

available

  • Soft state / scalable
  • Eventually

consistent

Distributed

“BASE” coined by Dan Pritchett of EBay

slide-15
SLIDE 15

ReST

  • ReST= Representational State Transfer
  • Roy T. Fielding’s Ph.D. thesis
  • Everything is a resource...
  • ...referenced by URIs...
  • ...viewed & created as representations.

Resource URI Representation

slide-16
SLIDE 16

WWW

  • Cookies, sessions
  • HTTP as transport
  • URIs reveal server

architecture

  • Web Sites
  • Pages
  • HTML
  • Stateless
  • HTTP as API
  • URIs give names to

resources

  • Web Services
  • Resources
  • HTML, XML, JSON...

ReST

slide-17
SLIDE 17

Real ReST

  • Ruby on Rails
  • Django (Python)
  • Restlet (Java)
  • RESTful Web Services

by Richardson

slide-18
SLIDE 18

Proxies

Mongrel

slide-19
SLIDE 19

The New Web Stack

  • Virtual servers, on-demand scalability
  • Distributed, document-oriented databases
  • Proxies, load-balancing
  • ReST and web services
slide-20
SLIDE 20

Image Credits

All trademarks are the property of their respective owners. Other public-domain images from

  • penclipart.org