eceCloudTM<br />Virtual-Worlds in the Clouds<br />Grid Computing using on demand / pay as you go VMs<br />
ECE289 Class is using ececloudTM<br />Campus Computing<br />Augmented<br />Mobile Computing<br />Secure Protocols<br />Mid...
Cloud Layer and Grid Layer<br />Sim01.exe<br />Sim02.exe<br />Sim03.exe<br />Sim04.exe<br />Grid Layer<br />Sim05.exe<br /...
Grid Layer<br />RackSpace Cloud<br />RSC-VM01<br />RSC-VM02<br />RSC-VM03<br />Rackspace Linux Virtual Machines<br />Cloud...
Cloud Management of Servers<br />Cloud Layer<br />
Cloud API<br />Cloud Layer<br />
Cloud API: RESTful Web Services<br />REST = Representational State Transfer<br />Conforming to the REST constraints is oft...
Cloud API: CURL<br />REST-esting with cURL<br />curl -i -H "Accept: application/json" -X POST -d "firstName=james" http://...
Cloud API  - API Authentication<br />Figure on page 7: API Authentication from Cloud Servers Developer Guide 10/15/09<br /...
Cloud API  - API Version<br />Figure on page 15: API Version<br />GET HTTP/1.1<br />Host: servers.api.rackspacecloud.com/ ...
Cloud API  - API Version<br />Figure on page 20: List Servers<br />curl -i -H "Accept: application/xml" -H  "X-Auth-Token:...
Virtual Space<br />Grid Layer<br />
Augmented Reality<br />Cool Augmented Business Card from Toxin Labs<br />http://artimes.rouli.net/2009/07/cool-augmented-b...
Social Networks<br />
What’s Next<br />
References<br />http://www.productionscale.com/home/2009/8/2/using-curl-to-access-the-rackspace-cloud-api.html<br />http:/...
Upcoming SlideShare
Loading in …5
×

ececloud Architecture for GWU\'s ECE 289 Class

563 views
481 views

Published on

GWU ECE289 Spring 2010

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
563
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/
  • ececloud Architecture for GWU\'s ECE 289 Class

    1. 1. eceCloudTM<br />Virtual-Worlds in the Clouds<br />Grid Computing using on demand / pay as you go VMs<br />
    2. 2. ECE289 Class is using ececloudTM<br />Campus Computing<br />Augmented<br />Mobile Computing<br />Secure Protocols<br />Midterm<br />Grid Computing<br />Virtual<br />Cloud Computing<br />
    3. 3. Cloud Layer and Grid Layer<br />Sim01.exe<br />Sim02.exe<br />Sim03.exe<br />Sim04.exe<br />Grid Layer<br />Sim05.exe<br />Sim06.exe<br />Sim07.exe<br />Sim08.exe<br />Amazon EC2<br />RackSpace Cloud<br />gwcloud.net<br />ececloud.com<br />gwcloud.org<br />RSC-VM01<br />RSC-VM02<br />RSC-VM03<br />EC2-VM01<br />EC2-VM02<br />EC2-VM03<br />sim01<br />sim02<br />sim05<br />sim06<br />Inventory Server<br />VoIP Server<br />FreeSwitch<br />DataBase Server<br />MySQL<br />Web Server<br />sim03<br />sim04<br />sim07<br />sim08<br />Message Server<br />Cloud Layer<br />Grid Server<br />IRC Client/Relay<br />IRC Client/Relay<br />
    4. 4. Grid Layer<br />RackSpace Cloud<br />RSC-VM01<br />RSC-VM02<br />RSC-VM03<br />Rackspace Linux Virtual Machines<br />Cloud Layer<br />
    5. 5. Cloud Management of Servers<br />Cloud Layer<br />
    6. 6. Cloud API<br />Cloud Layer<br />
    7. 7. Cloud API: RESTful Web Services<br />REST = Representational State Transfer<br />Conforming to the REST constraints is often referred to as being ‘RESTful’<br />Roy Fielding Doctoral Dissertation “Roy Fielding "Architectural Styles and the Design of Network-based Software Architectures” year 2000 http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm<br />“Adddressability is the idea that every object and resource in your system is reachable through a unique identifier……..URIs”<br />Scheme://host:port/path?queryString#fragment<br />http://example.com/customers?lastName=Burke&zipcode=02115<br />With REST over HTTP you do not have to worry about vendor interoperability you can focus on understanding the data format of the server and application interoperability . …. Bill Burke <br />
    8. 8. Cloud API: CURL<br />REST-esting with cURL<br />curl -i -H "Accept: application/json" -X POST -d "firstName=james" http://192.168.0.165/persons/person<br />Where<br />i – show response headers<br />H – pass request headers to the resource<br />X – pass a HTTP method name<br />d – pass in parameters enclosed in quotes; multiple parameters are separated by ‘&’The above command posts the first name “james” to the persons resource. Assuming the server creates a new person resource with first name of James, I also tell the server to return a json representation of the newly created resource.<br />Good Examples http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/<br />
    9. 9. Cloud API - API Authentication<br />Figure on page 7: API Authentication from Cloud Servers Developer Guide 10/15/09<br />GET /v1.0 HTTP/1.1<br />Host: auth.api.rackspacecloud.com<br />X-Auth-User: jdoe<br />X-Auth-Key: a86850deb2742ec3cb41518e26aa2d89 <br />Curl implementation of the above Authentication Request<br />curl -i -H "X-Auth-Key: a86850deb2742ec3cb41518e26aa2d89 " -H "X-Auth-User: jdoe" https://auth.api.rackspacecloud.com/v1.0<br />Rackspace Response<br />HTTP/1.1 204 No Content<br />Date: Sat, 27 Feb 2010 06:28:49 GMT<br />Server: Apache/2.2.3 (Mosso Engineering)<br />X-Storage-Token: 6ce9397a-4164-44ba-bbd4-e1b6c9a6abc1<br />X-Storage-Url: https://storage5.clouddrive.com/v1/MossoCloudFS_8c1e3b35-d250-4a6d-aa5a-35399b039b1d<br />X-Server-Management-Url: https://servers.api.rackspacecloud.com/v1.0/437001<br />X-CDN-Management-Url: https://cdn.clouddrive.com/v1/MossoCloudFS_8c1e3b35-d250-4a6d-aa5a-35399b039b1d<br />X-Auth-Token: 6ce9397a-4164-44ba-bbd4-e1b6c9a6abc1<br />Content-Length: 0<br />Connection: close<br />Content-Type: application/octet-stream<br />
    10. 10. Cloud API - API Version<br />Figure on page 15: API Version<br />GET HTTP/1.1<br />Host: servers.api.rackspacecloud.com/ <br />curl -i -H "Accept: application/xml" -H "X-Auth-Token: 6ce9397a-4164-44ba-bbd4-e1b6c9a6abc1" -X GET "https://servers.api.rackspacecloud.com/"<br />HTTP/1.1 200 OK<br />Server: Apache-Coyote/1.1<br />vary: Accept, Accept-Encoding<br />Last-Modified: Thu, 25 Feb 2010 22:40:13 GMT<br />Content-Type: application/xml<br />Content-Length: 161<br />Date: Sat, 27 Feb 2010 05:42:06 GMT<br />X-Varnish: 168976310Age: 0<br />Via: 1.1 varnishConnection: close<br /><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br /><versions xmlns="http://docs.rackspacecloud.com/servers/api"><br /> <version status="BETA" id="v1.0"/><br /></versions><br />
    11. 11. Cloud API - API Version<br />Figure on page 20: List Servers<br />curl -i -H "Accept: application/xml" -H "X-Auth-Token: 6ce9397a-4164-44ba-bbd4-e1b6c9a6abc1" -X GET https://servers.api.rackspacecloud.com/v1.0/437001/servers/detail > apiServerListDetails.xml<br />
    12. 12.
    13. 13. Virtual Space<br />Grid Layer<br />
    14. 14. Augmented Reality<br />Cool Augmented Business Card from Toxin Labs<br />http://artimes.rouli.net/2009/07/cool-augmented-business-card-from-toxin.html<br />
    15. 15. Social Networks<br />
    16. 16. What’s Next<br />
    17. 17. References<br />http://www.productionscale.com/home/2009/8/2/using-curl-to-access-the-rackspace-cloud-api.html<br />http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/<br />http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm<br />https://manage.rackspacecloud.com/APIAccess.do<br />http://en.wikipedia.org/wiki/REST<br />http://oreilly.com/catalog/9780596529260/<br />http://www.oreillynet.com/pub/wlg/3005<br />http://15timez.blogspot.com/2010/03/virtual-world-therecom-to-close.html<br />I was recently talking with Jeff Barr, creator of syndic8 and now Amazon's chief web services evangelist. <br />He let drop an interesting tidbit. Amazon has both SOAP and REST interfaces to their web services, and <br />85% of their usage is of the REST interface. Despite all of the corporate hype over the SOAP stack, this is <br />pretty compelling evidence that developers like the simpler REST approach. <br />(I know there are many more complex applications where SOAP is better, but I've always liked <br />technologies that have low barriers to entry and grassroots adoption, and simple XML over HTTP <br />approach seems to have that winning combination.) ….. REST vs. SOAP Tim O’Reilly Apr 03, 2003<br />With REST over HTTP you do not have to worry about vendor interoperability you can focus on understanding the data format of the server and application interoperability . …. Bill Burke <br />

    ×