Google App Engine

From Infogalactic: the planetary knowledge core
(Redirected from App Engine)
Jump to: navigation, search
Google App Engine
64px
Developer(s) Google
Initial release April 7, 2008; 16 years ago (2008-04-07)
Stable release 1.9.51 / 29 March 2017 (2017-03-29)
Development status Released
Written in Python, Java, Go, PHP, Node.JS
Operating system linux (glibc)
Platform little-endian 32bits
Type Web development
License Proprietary
Website cloud.google.com/appengine/

Google App Engine (often referred to as GAE or simply App Engine) is a cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.[1] 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.[2]

Google App Engine is free up to a certain level of consumed resources. Fees are charged for additional storage, bandwidth, or instance hours required by the application.[3] 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

Currently[when?], the supported programming languages are Python, Java (and, by extension, other JVM languages such as Groovy, JRuby, Scala, Clojure), Go, and PHP. Node.js is also available in the Managed VM environment. Google has said that it plans to support more languages in the future, and that the Google App Engine has been written to be language independent.[4]

Python web frameworks that run on Google App Engine include Django, CherryPy, Pyramid, Flask, web2py and webapp2,[5] as well as a custom Google-written webapp framework and several others designed specifically for the platform that emerged since the release.[6] 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.[7][8]

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,[9] along with accompanying technologies such as JSP. JavaServer Faces operates with some workarounds.

Though the integrated database, Google Cloud Datastore, may be unfamiliar to programmers, it is easily accessed and supported with JPA, JDO, and by the simple low-level API.[10] There are several alternative libraries and frameworks you can use to model and map the data to the database such as Objectify,[11] Slim3[12] and Jello framework. Jello framework is a full-stack Java framework optimized for Google App Engine that includes comprehensive Data Authorization model and a powerful RESTful engine.[13]

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.[14]

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

Reliability and Support

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

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.[18]

Paid support from Google engineers is offered as part of Premier Accounts.[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]

Bulk downloading

SDK version 1.2.2 adds support for bulk downloads of data using Python.[21] The open source Python projects gaebar,[22] approcket,[23] and gawsh[24] 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.[25]
  • 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.[26]
  • 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.[27] 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 can be used for App Engine applications requiring a relational MySQL compatible database backend.[28]

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[29] Instead, one-to-many and many-to-many relationships can be accomplished using ReferenceProperty().[30] This shared-nothing approach allows disks to fail without the system failing.[31] 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.[32] 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[33] 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.[34] AppScale can run Python, Java, PHP, and Go applications on EC2, Google Compute Engine, Softlayer, Azure and other cloud vendors.

TyphoonAE[33] 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.[35]

Backends

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

Google Cloud SQL

In Oct 2011, Google previewed a zero maintenance SQL database, which supports JDBC and DB-API.[39] This service allows to create, configure, and use relational databases with App Engine applications. Google Cloud SQL offers MySQL 5.5 and 5.6.[40]

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.[41]

Google App Engine defines usage quotas for free applications. Extensions to these quotas can be requested, and application authors can pay for additional resources.[42] Below are limit and quotas defined per application:

Hard limits

Quota Limit
Time per request 60 sec per normal request, 10 minutes for tasks, unlimited for backends
HTTP response size 32 MB
Datastore item size 1 MB

Free quotas

Application creators who enable billing pay only for instance hours, bandwidth, storage, and API usage in excess of the free quotas. Free quotas were reduced on May 25, 2009,[43] reduced again on June 22, 2009.[43] but then revised in May 2011 to allow for more infrastructure and pricing changes.[44][45]

Quota Limit (per day)
Backend Instance Hours 9 hours
Frontend Instance Hours 28 hours
Emails 100 (5000 admin emails)
Bandwidth in 1 GB
Bandwidth out 1 GB
Datastore Storage Data 1 GB
Datastore Entity Reads 50,000
Datastore Entity Writes 20,000
Datastore Entity Deletes 20,000
Code and Static File Storage 1 GB
Logs Stored Data 1 GB
Search API Stored Data 250 MB
Search API Search Minutes 100 minutes
Blob Storage Data 5 GB
XMPP API Stanzas Sent 10,000 stanzas
Channel API 100 channels created
Sockets Created 864,000
Sockets Data Sent and Received 20 GB each
URLFetch API calls per day 657,084

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. https://cloud.google.com/appengine/docs/java/cloud-sql/
  29. . Introducing Google App Engine part 3
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. 33.0 33.1 Lua error in package.lua at line 80: module 'strict' not found.
  34. AppScale Launches As An Open-Source Backup Equivalent To Google App Engine. TechCrunch (2013-06-24). Retrieved on 2013-09-18.
  35. [1] Archived February 20, 2010, at the Wayback Machine
  36. Google I/O 2011: App Engine Backends on YouTube
  37. Backends Python API Overview
  38. [2]
  39. Google Cloud SQL: your database in the cloud
  40. [3]
  41. Lua error in package.lua at line 80: module 'strict' not found.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. 43.0 43.1 Lua error in package.lua at line 80: module 'strict' not found.
  44. Lua error in package.lua at line 80: module 'strict' not found.
  45. Lua error in package.lua at line 80: module 'strict' not found.

Bibliography

  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.
  • Lua error in package.lua at line 80: module 'strict' not found.

External links

Stanford University. (online video archive)

  1. REDIRECT Template:Google LLC