Building and operationalizing storage systems Flashcards
Chapter 2
What is a managed database?
A managed database is one that does not require as much administration and operational support as an unmanaged database because Google will tae care of core operational tasks, such as creating databases, performing backups and updating the operating systems of database instances. Google also manages sclaing disks, configuring for failover, monitoring and authorizing network connections.
Configuration process for Cloud SQL databases include the specification of:
- An instance ID
- A password
- A region and zone
- A database version
What is a read replica?
A read replica is a copy of the primary instance’s data that is maintained in the same region as the primary instance.
What is Cloud Spanner?
Is Google’s relational, horizontal scalable, global database. It is a relational database, so it supports fixed schemas and is ANSI SQL 2011 compliant.
How does cloud spanner keep al replicas sycnrhonized?
To keep all replicas synchronized, Cloud Spanner uses a voting mechanism to determine writes. Cloud spanner uses a voting mechanism to determine the latest write-in case of a conflict value.
What are the three types of replicas in cloud spanner?
- Read-write replicas
- read-only replicas
- witness replicas
Why is designing tables for bigtbal fundamentally different form designing them for relational databses?
- Bigtable table are denormalized
- no support for joins in bigtable
- Data stored in bigtable lexicographyically by row-key
- Keeping related data in adjacent rows can help make reads more efficient.
What are three characteristics of a good row-key?
- Use prefix for multitenancy
- Columns taht are not frequently updated
- Nonsqeuential value in teh first part of hte row-key
What is Cloud Firestore?
Cloud Firestore is the managed document database that is replacing cloud datastore.
when are document databases used?
Document databases are used when the structure of data can vary from one record to another.
What are features that cloud firestore has that are not previously available in Cloud Datastore?
- strongly consistent storage layer
- real-time updates
- mobile and web client libraries
- A new collection of document data model
What are the modes that cloud firestore can operate in?
(1) Native mode and (2) cloud datastore mode.
What is datasotre mode for firestore? and what is native mode?
In datastore mode, firestoer operates like datastpre but uses the firestore storage system. This provides for strong consistency instead of eventual consistency. The new data model, real-time updates, and mobile and web client library features are available only in Native mode.
Cloud firestore in datastore mode uses a data model taht consistes of:
- entities,
- entity groups,
- properties,
- keys
What are the two kinds of indexes that cloud firestore uses?
- built-in
- composite