Luca Poddigue
Luca Poddigue

Reputation: 1082

Google Cloud Datastore with and w/o Protocol Buffers

While searching for information about the Google Cloud Datastore, I stumbled upon two different official documentation branches that seem to have the same content in terms of concepts, but provide code samples based on two different APIs:

  1. Here examples are based on the Protocol Buffers API.
  2. Here the same content is provided with examples based on the standard Google App Engine SDK.

Seems like the same set of actions are supported by both the APIs, but I'm not able to figure out what are the substantial differences between the two. Why should I choose one instead of the other, and why Google is offering both?

Upvotes: 3

Views: 1163

Answers (1)

Dave W. Smith
Dave W. Smith

Reputation: 24966

The difference is where your application will run. Datastore started as an App Engine-only thing, with App Engine-specific APIs, and was later expanded to support access from other sources.

If you're deploying to Google App Engine, choose #2.

If you're deploying elsewhere, and want to use Google Cloud Datastore as your repository, choose #1.

Upvotes: 6

Related Questions