1 / 17

Google App Engine for Java

Google App Engine for Java. Lars Vogel Ralf Gueldemeister Venkiteswaran Balakrishnan. Google App Engine. Commonly referred to as “Platform as a Service”, the GAE allows you to host webapplications in the Google infrastructure. Scalable Infrastructure.

naif
Télécharger la présentation

Google App Engine for Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Google App Engine for Java • Lars Vogel Ralf Gueldemeister Venkiteswaran Balakrishnan

  2. Google App Engine Commonly referred to as “Platform as a Service”, the GAE allows you to host webapplications in the Google infrastructure. Scalable Infrastructure

  3. You cannot see behind the curtain, GAE provides a fixed set of API to you. Scalable Infrastructure

  4. Google App Engine Scalable Infrastructure

  5. Google App Engine - Limits 10 Applications per User 5 Million Pageviews are free per month. Approx. 6.5 hours of CPU and 1 Gigabyte of traffic. http://code.google.com/intl/en-EN/appengine/docs/billing.html Scalable Infrastructure

  6. Google App Engine – Programming Languages Python Java-isch Scala Groovy JRuby JPython …

  7. Webprogramming with JavaServlet vrs. JSP A servlet is a Java class which answers a HTTP request within a web container. JavaServer Pages (JSP) are files which contains HTML and Java code. The web container compiles the JSP into a servlet at the first time of accessing this JSP

  8. Google App Engine – Java Restricts usage of some Java classes, e.g. Threads Allows to use standard Java EE API Provides Low-Level Google API

  9. Data Store Based on BigTable Sorted Map, no Joins Schemaless Transactional Low-level APIs JDO and JPA Blobstore

  10. Datastore via JDO Data Classes @PersistenceCapablepublic class Employee {    @Persistent    private String name} PersistenceManager PersistenceManager pm = PMF.get().getPersistenceManager();pm.makePersistent(employee);pm.close; Retrieval and Queries employee = pm.getObjectById(Employee.class, key);Query query = pm.newQuery(Employee.class, “name = :name”);List<Employee> results = (List<Employee>) query.execute("Smith"); Relations @Persistent(mappedBy = "employee“)private List<ContactInfo> contactInfoSets;

  11. App Engine Services Caching URL Fetching Mail Instant Messaging Image Manipulation User Management Background Tasks

  12. Possible Web Frameworks on GAE/J Basically all Java Web frameworks, e.g. JSP, Servlets based GWT, JSF, Struts, Wicket

  13. Demo

  14. Hands-on Tutorial The following tutorials give an intro to GAE/J using servlets and JSP‘s http://www.vogella.de/articles/GoogleAppEngineJava/article.html http://code.google.com/intl/de-DE/appengine/docs/java/gettingstarted/ Datastore: http://code.google.com/appengine/docs/java/datastore/ http://code.google.com/appengine/articles/datastore/overview.html http://www.readwriteweb.com/enterprise/2009/02/is-the-relational-database-doomed.php http://www.slideshare.net/LucaMarrocco/google-app-engine-java

  15. Photo credits • Guy pulling the white wall http://www.sxc.hu/photo/702367 • Balloon http://www.sxc.hu/photo/566242 • Open Door http://www.sxc.hu/photo/1228296 • Paper Chart http://www.sxc.hu/photo/565681 • Binary http://www.sxc.hu/photo/1072645 • Footprint http://www.sxc.hu/photo/442696 • Old Computer http://www.sxc.hu/photo/1028528 • Carton http://www.sxc.hu/photo/502161 • Eye http://www.sxc.hu/photo/933394 • Guitar playing man http://www.sxc.hu/photo/ 894247

  16. Thank you For further questions: Lars.Vogel@gmail.com http://www.vogella.de http://www.twitter.com/vogella

  17. License & Acknowledgements • This work is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Germany License • See http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed.en_US

More Related