2. What is it for?
● Web applications
● Real time dynamic applications
● Automatic Scaling
● resource agnostic
● "Pay As You Go" billing: CPU, Storage,
Network
3. Main Components:
● Runtime Environment:
○ Respond to web requests
○ Java and Python
● Static File Server:
○ Resources does not change in regular operation:
images, CSS, HTML and JavaScript.
● Datastore:
○ Work as central database.
○ Storing requests' data.
● Scalable Service:
○ Manage self scaling for all AppEngine components
4. Datastore:
● Application storage ==> Datastore entity.
● Datastore entity ==> properties
● property ==> <key,value>
● Datastore entity ==> named kind
● Different datastore entity has different
properties.
● Single property has multiple values
● Each Datastore entity ==> unique key
● Java: JPA and JDO
5. Datastore: Python API - put()
from google.appengine.ext import db
import datetime
class Book(db.Expando):
pass
obj = Book()
obj.title = 'The Grapes of Wrath'
obj.author = 'John Steinbeck'
obj.copyright_year = 1939
obj.author_birthdate = datetime.date(1902,
2, 27)
obj.put()