Google App Engine
From Wikipedia, the free encyclopedia
This article needs reorganization to meet Wikipedia's quality standards. There is good information here, but it is poorly organized; editors are encouraged to be bold and make changes to the overall structure to improve this article. (January 2009) |
This article or section contains information about computer software currently in development. The content may change as the software development progresses. |
Google App Engine Logo |
|
Developed by | |
---|---|
Initial release | April 7, 2008 |
Operating system | Any (web based application) |
Type | Web development |
Website | appengine.google.com |
Google App Engine is a platform for building and hosting web applications on Google's infrastructure. It was first released as a beta version in April 2008.
Based on cloud computing technology, Google App Engine uses multiple servers to run an application and store data, and automatically adjusts the number of servers to handle requests reliably.[1] Comparable cloud-based platforms include offerings such as Amazon Web Services and Microsoft's Azure Services Platform.
Google App Engine is free up to a certain level of used resources, after which fees are charged for additional storage, bandwidth, or CPU cycles required by the application.[2]
Contents |
[edit] Supported programming languages and frameworks
Currently, the supported programming languages are Python and Java. A limited version of the Django web framework is available, as well as a custom Google-written web app framework similar to JSP or ASP.NET. 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. 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.[3][4]
[edit] Differences from 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 millions of hits. Google handles deploying code to a cluster, database sharding, monitoring, failover, and launching application instances as necessary.
While other services let users install and configure nearly any *NIX compatible software, AppEngine requires developers to use Python or Java as the programming language and a limited set of APIs. Current APIs allow storing and retrieving data from a BigTable non-relational database; making HTTP requests; sending e-mail; manipulating images; and caching. Most existing Web applications can't run on App Engine without modification, because they require a relational database.
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 30 seconds or return more than 10MB of data.
[edit] Differences between SQL and GQL
Google App Engine's datastore has a SQL-like syntax called "GQL". Select statements in GQL can be performed on one table only. GQL intentionally does not support the Join statement, because it is seen to be inefficient when queries span more than one machine.[5] Instead, one-to-many and many-to-many relationships can be accomplished using ReferenceProperty().[6] This shared-nothing approach allows disks to fail without the system failing.[7]
The where clause of select statements can perform >, >=, <, <= operations on one column only. Therefore, only simple where clauses can be constructed. Switching from a relational database to the Datastore requires a paradigm shift for developers when modeling their data.
App Engine limits the maximum rows returned from an entity get to 1000 rows per Datastore call. Most web database applications use paging and caching, and hence do not require this much data at once, so this is a non-issue in most scenarios.[citation needed] If an application needs more than 1,000 records per operation, it can use its own client-side software or an Ajax page to perform an operation on an unlimited number of rows.
Unlike a relational database such as Oracle, Microsoft SQL Server, MySQL, or PostgreSQL, the Datastore API is not relational in the SQL sense.
[edit] Restrictions
- Developers have read-only access to the filesystem on App Engine.
- App Engine can only execute code called from an HTTP request (except for scheduled background tasks).
- Users may upload arbitrary Python modules, but only if they are pure-Python; C and Pyrex modules are not supported.
[edit] Downloading data from App Engine
The open source project gawsh allows users to download App Engine data.[8]
[edit] Quota rates
App Engine defines usage quotas for free applications. Extensions to this quotas can be requested, and application authors can pay for additional resources.[9]
[edit] Hard limits
Quota | Limit |
---|---|
Apps per developer | 10 |
Time per request | 30 sec |
Files per app | 1,000 |
HTTP response size | 10 MB |
Datastore item size | 1 MB |
Application code size | 150 MB |
[edit] Free quotas
Application creators who enable billing pay only for CPU, bandwidth, storage, and e-mails used in excess of the free quotas. Limits marked with * are increased for application authors who enable billing, even if their application never uses enough resources to incur charges. Free quotas will be reduced on May 25, 2009.[10]
Quota | Limit |
---|---|
Emails per day | 2,000 |
Bandwidth in per day | 10,000 MB |
Bandwidth out per day | 10,000 MB |
Secure bandwidth in per day | 2,000 MB |
Secure bandwidth out per day | 2,000 MB |
CPU megacycles per day | 200,000,000 |
HTTP Requests per Day | 1,333,328* |
Datastore API calls per day | 10,368,000* |
Data stored | 1 GB |
URLFetch API calls per day | 657,084* |
[edit] Competition
The service competes with Amazon Web Services, a set of application services that enable web sites to host files and execute code on Amazon's servers. Many tech analysts have been predicting Google's entry into this field for years. "Google finally realizes it needs to be the web platform," Techdirt publisher Mike Masnick wrote. "The easier it is to develop and deploy highly scalable web applications, the more innovative and creative solutions we're going to start to see."[11]
Other competitors include Microsoft's Azure Services Platform.
[edit] References
- ^ http://code.google.com/appengine/docs/python/runtime.html
- ^ http://code.google.com/appengine/docs/quotas.html
- ^ http://code.google.com/appengine/docs/whatisgoogleappengine.html
- ^ http://code.google.com/appengine/docs/python/tools/webapp/overview.html
- ^ http://www.youtube.com/watch?v=oG6Ac7d-Nx8
- ^ http://code.google.com/appengine/articles/modeling.html
- ^ http://highscalability.com/google-architecture
- ^ http://code.google.com/p/gawsh/
- ^ "Understanding Application Quotas with Google App Engine". http://code.google.com/appengine/articles/quotas.html. Retrieved on 2008-09-10.
- ^ Google, Inc., Upcoming Changes to the Free Quotas, accessed February 26 ,2009
- ^ "Google Finally Realizes It Needs To Be The Web Platform". 2008-04-07. http://techdirt.com/articles/20080407/225749782.shtml. Retrieved on 2008-04-12.
[edit] External links
- Official site
- Google App Engine - Run your web applications on Google's infrastructure - a technical talk by Google engineer Guido van Rossum at Stanford University. (online video archive)
- Unofficial App Engine Java site
- How to deploy a simple Java web application on Google App Engine
- Run your PHP scripts on the Google App Engine