Chapter 10: Storing Data in the Datastore and Blobstore

This chapter demonstrates how to write code to communicate with the Google App Engine datastore and the Blobstore. It builds on the theory presented in Chapter 4, “Data Modeling for the App Engine Datastore.” It starts with storing, querying, and retrieving data synchronously. Next, the changes in the code to process data asynchronously are presented. Two simple examples demonstrate how to work with multitenancy and transactions. Finally, storing, querying, and retrieving blobs from the Blobstore are demonstrated.

Processing Data Synchronously

Google provides three APIs to work with the datastore: Java Data Objects (JDO), Java Persistence API (JPA), and the low-level API. In addition, the ...

Get Essential App Engine: Building High-Performance Java Apps with Google App Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.