Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Google Cloud Platform Cookbook

You're reading from  Google Cloud Platform Cookbook

Product type Book
Published in Apr 2018
Publisher Packt
ISBN-13 9781788291996
Pages 280 pages
Edition 1st Edition
Languages
Author (1):
Legorie Rajan PS Legorie Rajan PS
Profile icon Legorie Rajan PS
Toc

Table of Contents (14) Chapters close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Compute 2. Storage and Databases 3. Networking 4. Security 5. Machine Learning and Big Data 6. Management Tools 7. Best Practices 1. Other Books You May Enjoy Index

Storage metadata in Google Cloud Datastore


Google Datastore is a highly scalable, NoSQL document database similar to Amazon's DynamoDB and MongoDB. Individual data objects in the Datastore are called entities. An entity has one or more properties and a category of objects is called a kind. Each object is uniquely identified by a key. In this recipe, we would simulate a storage drive environment. Employees of a company are given the ability to upload files to Google Storage. The metadata is stored in Cloud Datastore to avoid overhead to the Storage API and for efficiency. The file uploaded to the Storage follows this file format:

<5-digit hash>/<[year][month][day][hour][minute][second]>/<Employee ID>/<file name>

After the data is uploaded to Storage, the metadata collected should enable us to query:

  • List all objects uploaded by an employee
  • List all objects in a time range

So, we'll design the metadata in the following format:

Kind

Drive

Entity

Data objects inserted for example...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime