tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Cloud Platforms > Google Cloud Platform (GCP) > Cloud Datastore

Cloud Datastore

Author: Venkata Sudhakar

Google Cloud Datastore is a highly scalable, fully managed NoSQL document database service built for automatic scaling, high performance, and ease of application development. It is now part of Cloud Firestore in Datastore mode.

Key Features:

1. Schemaless - No fixed schema; entities can have different properties.

2. ACID transactions - Supports strongly consistent transactions.

3. SQL-like queries - GQL (Google Query Language) for querying entities.

4. Auto-scaling - Scales automatically to handle any load.

5. Fully managed - No servers to provision or manage.

The below example shows how to store and retrieve entities using Cloud Datastore Java client.


It gives the following output,

Saved employee: John Doe
Engineering employees:
  - John Doe (Salary: 95000)

Datastore Concepts:

Kind - Similar to a table in RDBMS; groups entities of the same type.

Entity - Similar to a row; the unit of data in Datastore.

Key - Uniquely identifies an entity; can be auto-generated or user-defined.

Property - Similar to a column; named values stored in an entity.


 
  


  
bl  br