Google App Engine

Google App Engine (often referred to as GAE or simply App Engine) is a Platform as a Service and cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.[2] App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand.[3]

Google App Engine
Developer(s)Google
Initial releaseApril 7, 2008 (2008-04-07)[1]
TypePlatform as a service
Websitecloud.google.com/appengine/

Google App Engine primarily supports Go, PHP, Java, Python, Node.js, .NET, and Ruby applications, although it can also support other languages via "custom runtimes".[4] The service is free up to a certain level of consumed resources and only in standard environment but not in flexible environment. Fees are charged for additional storage, bandwidth, or instance hours required by the application.[5] It was first released as a preview version in April 2008 and came out of preview in September 2011.

Supported features/restrictions

Runtimes and framework

Google App Engine primarily supports Go, PHP, Java, Python, Node.js, .NET, and Ruby applications, although it can also support other languages via "custom runtimes".[4]

Python web frameworks that run on Google App Engine include Django, CherryPy, Pyramid, Flask, web2py and webapp2,[6] as well as a custom Google-written webapp framework and several others designed specifically for the platform that emerged since the release.[7] Any Python framework that supports the WSGI using the CGI adapter can be used to create an application; the framework can be uploaded with the developed application. Third-party libraries written in pure Python may also be uploaded.[8][9]

Google App Engine supports many Java standards and frameworks. Core to this is the servlet 2.5 technology using the open-source Jetty Web Server,[10] along with accompanying technologies such as JSP. JavaServer Faces operates with some workarounds. A newer release of App Engine Standard Java in Beta supports Java8, Servlet 3.1 and Jetty9.

Though the integrated database, Google Cloud Datastore, may be unfamiliar to programmers, it is accessed and supported with JPA, JDO, and by the simple low-level API.[11] There are several alternative libraries and frameworks you can use to model and map the data to the database such as Objectify,[12] Slim3[13] and Jello framework.[14]

The Spring Framework works with GAE. However, the Spring Security module (if used) requires workarounds. Apache Struts 1 is supported, and Struts 2 runs with workarounds.[15]

The Django web framework and applications running on it can be used on App Engine with modification. Django-nonrel[16] aims to allow Django to work with non-relational databases and the project includes support for App Engine.[17]

Reliability and Support

All billed App Engine applications have a 99.95% uptime SLA.[18]

App Engine is designed in such a way that it can sustain multiple datacenter outages without any downtime. This resilience to downtime is shown by the statistic that the High Replication Datastore saw 0% downtime over a period of a year.[19]

Free support is offered in the App Engine Groups, Stack Overflow, Server Fault, and GitHub. However, assistance by a Google staff member is not guaranteed.[20] Paid support from Google engineers is offered as part of Premier Accounts.[21]

Bulk downloading

SDK version 1.2.2 adds support for bulk downloads of data using Python.[22] The open source Python projects gaebar,[23] approcket,[24] and gawsh[25] also allow users to download and back up App Engine data. No method for bulk downloading data from GAE using Java currently exists.

Restrictions

  • Developers have read-only access to the filesystem on App Engine. Applications can use only virtual filesystems, like gae-filestore.[26]
  • App Engine can only execute code called from an HTTP request (scheduled background tasks allow for self calling HTTP requests).
  • Users may upload arbitrary Python modules, but only if they are pure-Python; C and Pyrex modules are not supported.
  • Java applications may only use a subset (The JRE Class White List) of the classes from the JRE standard edition.[27] This restriction does not exist with the App Engine Standard Java8 runtime.
  • A process started on the server to answer a request can't last more than 60 seconds (with the 1.4.0 release, this restriction does not apply to background jobs anymore).
  • Does not support sticky sessions (a.k.a. session affinity), only replicated sessions are supported including limitation of the amount of data being serialized and time for session serialization.

Major differences

Differences with other application hosting

Compared to other scalable hosting services such as Amazon EC2, App Engine provides more infrastructure to make it easy to write scalable applications, but can only run a limited range of applications designed for that infrastructure.

App Engine's infrastructure removes many of the system administration and development challenges of building applications to scale to hundreds of requests per second and beyond.[28] Google handles deploying code to a cluster, monitoring, failover, and launching application instances as necessary.

While other services let users install and configure nearly any *NIX compatible software, App Engine requires developers to use only its supported languages, APIs, and frameworks. Current APIs allow storing and retrieving data from the document-oriented Google Cloud Datastore database; making HTTP requests; sending e-mail; manipulating images; and caching. Google Cloud SQL[29] can be used for App Engine applications requiring a relational MySQL compatible database backend.[30]

Per-day and per-minute quotas restrict bandwidth and CPU use, number of requests served, number of concurrent requests, and calls to the various APIs, and individual requests are terminated if they take more than 60 seconds or return more than 32MB of data.

Differences between SQL and GQL

Google App Engine's integrated Google Cloud Datastore database has a SQL-like syntax called "GQL". GQL does not support the Join statement.[31] Instead, one-to-many and many-to-many relationships can be accomplished using ReferenceProperty().[32] This shared-nothing approach allows disks to fail without the system failing.[33] Switching from a relational database to Cloud Datastore requires a paradigm shift for developers when modeling their data.

Portability concerns

Developers worry that the applications will not be portable from App Engine and fear being locked into the technology.[34] In response, there are a number of projects to create open-source back-ends for the various proprietary/closed APIs of app engine, especially the datastore. AppScale, CapeDwarf and TyphoonAE[35] are a few of the open source efforts.

AppScale automatically deploys and scales unmodified Google App Engine applications over popular public and private cloud systems and on-premises clusters.[36] AppScale can run Python, Java, PHP, and Go applications on EC2, Google Compute Engine, Softlayer, Azure and other cloud vendors.

TyphoonAE[35] can run Python App Engine applications on any cloud that support linux machines.

Web2py web framework offers migration between SQL Databases and Google App Engine, however it doesn't support several App Engine-specific features such as transactions and namespaces.[37]

Kubernetes is an open-source job control system invented by Google to abstract away the infrastructure so that open-source (e.g. Docker) containerized applications can run on many types of infrastructure, such as Amazon Web Services, Microsoft Azure, and others. This is one of Google's answers to the portability concern.

Backends

In Google I/O 2011, Google announced App Engine Backends, which are allowed to run continuously, and consume more memory.[38][39] The Backend API was deprecated as of March 13, 2014 in favor of the Modules API.[40]

Google Cloud SQL

In Oct 2011, Google previewed a zero maintenance SQL database, which supports JDBC and DB-API.[41] This service allows creating, configuring, and using relational databases with App Engine applications. Google Cloud SQL offers MySQL 5.5 and 5.6.[42]

Usage quotas

Google App Engine requires a Google account to get started, and an account may allow the developer to register up to 25 free applications and an unlimited number of paid applications.[43]

Google App Engine defines usage quotas for free applications. Extensions to these quotas can be requested, and application authors can pay for additional resources.[44]

See also

References

  1. "Introducing Google App Engine + our new blog". Google App Engine Blog. 7 April 2008. Retrieved 3 December 2019.
  2. "Python Runtime Environment - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  3. Sanderson, Dan (2009). Programming Google App Engine: Build and Run Scalable Web Apps on Google's Infrastructure. O'Reilly Media. ISBN 978-0-596-52272-8.
  4. "Google App Engine Documentation | App Engine Documentation". Google Cloud. Retrieved 3 December 2019.
  5. "Quotas - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  6. "Welcome to webapp2! — webapp2 v2.5.1 documentation". Webapp-improved.appspot.com. Retrieved 2012-02-14.
  7. "AppEngineFrameworks - tipfy - The almighty little framework for Google App Engine - Google Project Hosting". Code.google.com. Retrieved 2012-02-14.
  8. "What Is Google App Engine? - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  9. "webapp Overview - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  10. "Google Chose Jetty for App Engine". Infoq.com. 2012-07-13. Retrieved 2012-07-17.
  11. "Google App Engine Datastore low-level API".
  12. "Objectify library".
  13. "Slim3 framework".
  14. "Jello Framework".
  15. "WillItPlayInJava - googleappengine - Lists the level of compatibility of various Java technologies and App Engine - Google App Engine - Google Project Hosting". Code.google.com. Retrieved 2012-02-14.
  16. "Django-nonrel - NoSQL support for Django". All Buttons Pressed. 2010-02-04. Retrieved 2012-07-17.
  17. "djangoappengine - Django App Engine backends (DB, email, etc.)". All Buttons Pressed. Retrieved 2012-07-17.
  18. "App Engine Service Level Agreement - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  19. "Google App Engine Blog: Happy Birthday High Replication Datastore: 1 year, 100,000 apps, 0% downtime". Googleappengine.blogspot.com. 2012-01-05. Retrieved 2012-02-14.
  20. "Google Cloud Platform - Support".
  21. "Premier Accounts - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  22. "Uploading and Downloading Data - Google App Engine - Google Code". Code.google.com. 1999-02-22. Retrieved 2012-02-14.
  23. aral. "aral/gaebar". GitHub. Retrieved 2012-02-14.
  24. "approcket - Live synchronization between AppEngine and MySQL - Google Project Hosting". Code.google.com. Retrieved 2012-02-14.
  25. "gawsh - Google Apps Web Service Helpers - Google Project Hosting". Code.google.com. Retrieved 2012-02-14.
  26. "gae-filestore - Simple Virtual File System on Google App Engine DataStore - Google Project Hosting". Code.google.com. Retrieved 2012-02-14.
  27. "The JRE Class White List - Google App Engine - Google Developers". cloud.google.com. 1999-02-22. Retrieved 2013-06-14.
  28. "Python Runtime Environment - Google App Engine". 2009-11-10. Retrieved 2009-11-10.
  29. "Google Cloud SQL Databases - Cloud SQL - Google Cloud Platform". Google Cloud Platform.
  30. "Using Google Cloud SQL - App Engine standard environment for Java - Google Cloud Platform". Google Cloud Platform.
  31. Google Developers (7 April 2008). "Campfire One: Introducing Google App Engine (pt. 3)" via YouTube.
  32. "Modeling Entity Relationships - Google App Engine — Google Developers". Code.google.com. 2012-06-26. Retrieved 2012-07-17.
  33. Saturday (2008-11-22). "Google Architecture". High Scalability. Retrieved 2012-07-17.
  34. Gallagher, Sean (2008-04-09). "Analysis: Google App Engine alluring, will be hard to escape". Ars Technica. Retrieved 2012-07-17.
  35. "typhoonae - Typhoon App Engine - Google Project Hosting". Code.google.com. Retrieved 2012-07-17.
  36. AppScale Launches As An Open-Source Backup Equivalent To Google App Engine. TechCrunch (2013-06-24). Retrieved on 2013-09-18.
  37. Archived February 20, 2010, at the Wayback Machine
  38. Google I/O 2011: App Engine Backends on YouTube
  39. "Backends Python API Overview - App Engine standard environment for Python - Google Cloud Platform". Google Cloud Platform.
  40. "Backends Python API Overview - App Engine standard environment for Python - Google Cloud Platform". Google Cloud Platform.
  41. "Google Cloud SQL: your database in the cloud - The official Google Code blog". 6 October 2011.
  42. "Cloud SQL FAQ - Cloud SQL Documentation - Google Cloud Platform". Google Cloud Platform.
  43. "Google App Engine General Questions". Google Developers. Retrieved 2015-06-18.
  44. "Understanding Application Quotas with Google App Engine". Retrieved 2010-04-16.

Bibliography

Stanford University. (online video archive)

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.