Foreword |
|
xvii | |
Preface |
|
xix | |
Acknowledgments |
|
xxi | |
About This Book |
|
xxiii | |
About The Cover Illustration |
|
xxvii | |
Part 1 Getting Started |
|
1 | (50) |
|
|
3 | (21) |
|
1.1 What is Google Cloud Platform? |
|
|
4 | (1) |
|
|
4 | (2) |
|
|
5 | (1) |
|
1.3 What to expect from cloud services |
|
|
6 | (3) |
|
|
6 | (1) |
|
|
7 | (1) |
|
Analytics (aka, Big Data) |
|
|
8 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
1.4 Building an application for the cloud |
|
|
9 | (4) |
|
What is a cloud application? |
|
|
9 | (1) |
|
|
10 | (2) |
|
|
12 | (1) |
|
1.5 Getting started with Google Cloud Platform |
|
|
13 | (5) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
16 | (2) |
|
|
18 | (6) |
|
In the browser: the Cloud Console |
|
|
18 | (2) |
|
On the command line: gcloud |
|
|
20 | (2) |
|
In your own code: google-cloud-* |
|
|
22 | (2) |
|
2 Trying it out: deploying WordPress on Google Cloud |
|
|
24 | (14) |
|
2.1 System layout overview |
|
|
25 | (1) |
|
2.2 Digging into the database |
|
|
26 | (5) |
|
Turning on a Cloud SQL instance |
|
|
27 | (1) |
|
Securing your Cloud SQL instance |
|
|
28 | (2) |
|
Connecting to your Cloud SQL instance |
|
|
30 | (1) |
|
Configuring your Cloud SQL instance for WordPress |
|
|
30 | (1) |
|
2.3 Deploying the WordPress VM |
|
|
31 | (2) |
|
2.4 Configuring WordPress |
|
|
33 | (3) |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
38 | (13) |
|
3.1 Data center locations |
|
|
39 | (3) |
|
3.2 Isolation levels and fault tolerance |
|
|
42 | (3) |
|
|
42 | (1) |
|
|
42 | (1) |
|
Designing for fault tolerance |
|
|
43 | (2) |
|
Automatic high availability |
|
|
45 | (1) |
|
|
45 | (3) |
|
|
46 | (1) |
|
|
47 | (1) |
|
|
48 | (1) |
|
3.4 Resource isolation and performance |
|
|
48 | (3) |
Part 2 Storage |
|
51 | (190) |
|
4 Cloud SQL: managed relational storage |
|
|
53 | (36) |
|
|
54 | (1) |
|
4.2 Interacting with Cloud SQL |
|
|
54 | (6) |
|
4.3 Configuring Cloud SQL for production |
|
|
60 | (8) |
|
|
60 | (1) |
|
|
61 | (5) |
|
|
66 | (1) |
|
|
67 | (1) |
|
4.4 Scaling up (and down) |
|
|
68 | (3) |
|
|
69 | (1) |
|
|
69 | (2) |
|
|
71 | (4) |
|
Replica-specific operations |
|
|
75 | (1) |
|
|
75 | (6) |
|
|
76 | (1) |
|
Manual data export to Cloud Storage |
|
|
77 | (4) |
|
4.7 Understanding pricing |
|
|
81 | (2) |
|
4.8 When should I use Cloud SQL? |
|
|
83 | (2) |
|
|
83 | (1) |
|
|
84 | (1) |
|
|
84 | (1) |
|
|
84 | (1) |
|
|
84 | (1) |
|
|
85 | (2) |
|
|
85 | (2) |
|
4.10 Weighing Cloud SQL against a VM running MySQL |
|
|
87 | (2) |
|
5 Cloud Datastore: document storage |
|
|
89 | (28) |
|
5.1 What's Cloud Datastore? |
|
|
90 | (11) |
|
Design goals for Cloud Datastore |
|
|
91 | (1) |
|
|
92 | (4) |
|
Consistency and replication |
|
|
96 | (3) |
|
Consistency with data locality |
|
|
99 | (2) |
|
5.2 Interacting with Cloud Datastore |
|
|
101 | (6) |
|
|
107 | (3) |
|
5.4 Understanding pricing |
|
|
110 | (1) |
|
|
110 | (1) |
|
|
110 | (1) |
|
5.5 When should I use Cloud Datastore? |
|
|
111 | (6) |
|
|
111 | (1) |
|
|
112 | (1) |
|
|
112 | (1) |
|
|
112 | (1) |
|
|
113 | (1) |
|
|
113 | (1) |
|
|
113 | (2) |
|
Other document storage systems |
|
|
115 | (2) |
|
6 Cloud Spanner: large-scale SQL |
|
|
117 | (41) |
|
|
118 | (1) |
|
|
118 | (1) |
|
|
118 | (3) |
|
|
119 | (1) |
|
|
120 | (1) |
|
|
120 | (1) |
|
|
120 | (1) |
|
6.4 Interacting with Cloud Spanner |
|
|
121 | (11) |
|
Creating an instance and database |
|
|
122 | (3) |
|
|
125 | (2) |
|
|
127 | (1) |
|
|
127 | (4) |
|
|
131 | (1) |
|
|
132 | (20) |
|
|
133 | (3) |
|
|
136 | (1) |
|
|
137 | (1) |
|
|
138 | (1) |
|
|
139 | (6) |
|
|
145 | (7) |
|
6.6 Understanding pricing |
|
|
152 | (1) |
|
6.7 When should I use Cloud Spanner? |
|
|
153 | (5) |
|
|
154 | (1) |
|
|
154 | (1) |
|
|
154 | (1) |
|
|
154 | (1) |
|
|
154 | (1) |
|
|
155 | (1) |
|
|
155 | (3) |
|
7 Cloud Bigtable: large-scale structured data |
|
|
158 | (41) |
|
|
159 | (3) |
|
|
159 | (2) |
|
|
161 | (1) |
|
|
162 | (1) |
|
|
162 | (11) |
|
|
163 | (5) |
|
|
168 | (5) |
|
7.3 Interacting with Cloud Bigtable |
|
|
173 | (11) |
|
Creating a Bigtable Instance |
|
|
173 | (2) |
|
|
175 | (2) |
|
|
177 | (4) |
|
Importing and exporting data |
|
|
181 | (3) |
|
7.4 Understanding pricing |
|
|
184 | (1) |
|
7.5 When should I use Cloud Bigtable? |
|
|
185 | (5) |
|
|
185 | (1) |
|
|
186 | (1) |
|
|
186 | (1) |
|
|
186 | (1) |
|
|
186 | (1) |
|
|
187 | (1) |
|
|
187 | (3) |
|
7.6 What's the difference between Bigtable and HBase? |
|
|
190 | (1) |
|
7.7 Case study: InstaSnap recommendations |
|
|
191 | (7) |
|
|
191 | (1) |
|
|
192 | (1) |
|
|
192 | (3) |
|
|
195 | (1) |
|
|
196 | (2) |
|
|
198 | (1) |
|
8 Cloud Storage: object storage |
|
|
199 | (42) |
|
|
200 | (1) |
|
|
200 | (1) |
|
8.2 Storing data in Cloud Storage |
|
|
201 | (3) |
|
8.3 Choosing the right storage class |
|
|
204 | (3) |
|
|
204 | (1) |
|
|
205 | (1) |
|
|
205 | (1) |
|
|
206 | (1) |
|
|
207 | (12) |
|
Limiting access with ACLs |
|
|
207 | (6) |
|
|
213 | (4) |
|
Logging access to your data |
|
|
217 | (2) |
|
|
219 | (4) |
|
|
223 | (2) |
|
|
225 | (3) |
|
|
227 | (1) |
|
|
228 | (2) |
|
|
228 | (1) |
|
|
229 | (1) |
|
8.9 Understanding pricing |
|
|
230 | (6) |
|
|
231 | (1) |
|
Amount of data transferred |
|
|
232 | (1) |
|
Number of operations executed |
|
|
233 | (1) |
|
Nearline and Coldline pricing |
|
|
234 | (2) |
|
8.10 When should I use Cloud Storage? |
|
|
236 | (7) |
|
|
236 | (1) |
|
|
236 | (1) |
|
|
236 | (1) |
|
|
237 | (1) |
|
|
237 | (1) |
|
|
237 | (1) |
|
|
237 | (1) |
|
|
238 | (1) |
|
|
238 | (3) |
Part 3 Computing |
|
241 | (184) |
|
9 Compute Engine: virtual machines |
|
|
243 | (63) |
|
9.1 Launching your first (or second) VM |
|
|
244 | (1) |
|
9.2 Block storage with Persistent Disks |
|
|
245 | (19) |
|
|
246 | (1) |
|
Attaching and detaching disks |
|
|
247 | (3) |
|
|
250 | (2) |
|
|
252 | (1) |
|
|
253 | (5) |
|
|
258 | (1) |
|
|
259 | (2) |
|
|
261 | (3) |
|
9.3 Instance groups and dynamic resources |
|
|
264 | (12) |
|
Changing the size of an instance group |
|
|
269 | (1) |
|
|
270 | (4) |
|
|
274 | (2) |
|
9.4 Ephemeral computing with preemptible VMs |
|
|
276 | (4) |
|
Why use preemptible machines? |
|
|
277 | (1) |
|
Turning on preemptible VMs |
|
|
278 | (1) |
|
|
278 | (1) |
|
|
279 | (1) |
|
|
280 | (9) |
|
|
282 | (3) |
|
|
285 | (1) |
|
|
286 | (1) |
|
Reviewing the configuration |
|
|
287 | (2) |
|
|
289 | (5) |
|
|
290 | (3) |
|
|
293 | (1) |
|
9.7 Understanding pricing |
|
|
294 | (7) |
|
|
294 | (1) |
|
|
295 | (3) |
|
|
298 | (1) |
|
|
298 | (1) |
|
|
299 | (2) |
|
9.8 When should I use GCE? |
|
|
301 | (5) |
|
|
301 | (1) |
|
|
302 | (1) |
|
|
302 | (1) |
|
|
302 | (1) |
|
|
302 | (1) |
|
|
303 | (1) |
|
|
303 | (1) |
|
|
304 | (2) |
|
10 Kubernetes Engine: managed Kubernetes clusters |
|
|
306 | (31) |
|
10.1 What are containers? |
|
|
307 | (3) |
|
|
307 | (1) |
|
|
307 | (2) |
|
|
309 | (1) |
|
|
310 | (1) |
|
|
310 | (5) |
|
|
312 | (1) |
|
|
312 | (1) |
|
|
313 | (1) |
|
|
314 | (1) |
|
10.4 What is Kubernetes Engine? |
|
|
315 | (1) |
|
10.5 Interacting with Kubernetes Engine |
|
|
315 | (12) |
|
Defining your application |
|
|
315 | (2) |
|
Running your container locally |
|
|
317 | (2) |
|
Deploying to your container registry |
|
|
319 | (1) |
|
Setting up your Kubernetes Engine cluster |
|
|
320 | (1) |
|
Deploying your application |
|
|
321 | (2) |
|
Replicating your application |
|
|
323 | (2) |
|
|
325 | (2) |
|
10.6 Maintaining your cluster |
|
|
327 | (5) |
|
Upgrading the Kubernetes master node |
|
|
327 | (2) |
|
|
329 | (2) |
|
|
331 | (1) |
|
10.7 Understanding pricing |
|
|
332 | (1) |
|
10.8 When should I use Kubernetes Engine? |
|
|
332 | (5) |
|
|
332 | (1) |
|
|
333 | (1) |
|
|
333 | (1) |
|
|
334 | (1) |
|
|
334 | (1) |
|
|
334 | (1) |
|
|
335 | (1) |
|
|
335 | (2) |
|
11 App Engine: fully managed applications |
|
|
337 | (48) |
|
|
338 | (5) |
|
|
339 | (2) |
|
|
341 | (1) |
|
|
342 | (1) |
|
|
342 | (1) |
|
11.2 Interacting with App Engine |
|
|
343 | (18) |
|
Building an application in App Engine Standard |
|
|
344 | (9) |
|
|
353 | (8) |
|
11.3 Scaling your application |
|
|
361 | (10) |
|
Scaling on App Engine Standard |
|
|
362 | (5) |
|
Scaling on App Engine Flex |
|
|
367 | (1) |
|
Choosing instance configurations |
|
|
368 | (3) |
|
11.4 Using App Engine Standard's managed services |
|
|
371 | (8) |
|
Storing data with Cloud Datastore |
|
|
371 | (1) |
|
|
372 | (2) |
|
|
374 | (1) |
|
|
375 | (4) |
|
11.5 Understanding pricing |
|
|
379 | (1) |
|
11.6 When should I use App Engine? |
|
|
380 | (5) |
|
|
380 | (1) |
|
|
381 | (1) |
|
|
381 | (1) |
|
|
381 | (1) |
|
|
382 | (1) |
|
|
382 | (1) |
|
|
382 | (1) |
|
|
383 | (2) |
|
12 Cloud Functions: seroerless applications |
|
|
385 | (21) |
|
12.1 What are microservices? |
|
|
385 | (1) |
|
12.2 What is Google Cloud Functions? |
|
|
386 | (5) |
|
|
388 | (3) |
|
12.3 Interacting with Cloud Functions |
|
|
391 | (4) |
|
|
391 | (1) |
|
|
392 | (2) |
|
|
394 | (1) |
|
|
395 | (8) |
|
|
395 | (1) |
|
|
396 | (1) |
|
|
396 | (3) |
|
|
399 | (2) |
|
Using a Google Source Repository |
|
|
401 | (2) |
|
12.5 Understanding pricing |
|
|
403 | (3) |
|
13 Cloud DNS: managed DNS hosting |
|
|
406 | (19) |
|
|
407 | (3) |
|
|
409 | (1) |
|
13.2 Interacting with Cloud DNS |
|
|
410 | (8) |
|
|
410 | (4) |
|
|
414 | (4) |
|
13.3 Understanding pricing |
|
|
418 | (1) |
|
|
418 | (1) |
|
Startup business DNS hosting |
|
|
418 | (1) |
|
13.4 Case study: giving machines DNS names at boot |
|
|
419 | (6) |
Part 4 Machine Learning |
|
425 | (94) |
|
14 Cloud Vision: image recognition |
|
|
427 | (19) |
|
|
428 | (15) |
|
|
429 | (3) |
|
|
432 | (3) |
|
|
435 | (2) |
|
|
437 | (3) |
|
|
440 | (1) |
|
Combining multiple detection types |
|
|
441 | (2) |
|
14.2 Understanding pricing |
|
|
443 | (1) |
|
14.3 Case study: enforcing valid profile photos |
|
|
443 | (3) |
|
15 Cloud Natural Language: text analysis |
|
|
446 | (17) |
|
15.1 How does the Natural Language API work? |
|
|
447 | (1) |
|
|
448 | (4) |
|
|
452 | (3) |
|
|
455 | (2) |
|
15.5 Understanding pricing |
|
|
457 | (2) |
|
15.6 Case study: suggesting InstaSnap hash-tags |
|
|
459 | (4) |
|
16 Cloud Speech: audio-to-text conversion |
|
|
463 | (10) |
|
16.1 Simple speech recognition |
|
|
465 | (2) |
|
16.2 Continuous speech recognition |
|
|
467 | (1) |
|
16.3 Hinting with custom words and phrases |
|
|
468 | (1) |
|
16.4 Understanding pricing |
|
|
469 | (1) |
|
16.5 Case study: InstaSnap video captions |
|
|
469 | (4) |
|
17 Cloud Translation: multilanguage machine translation |
|
|
473 | (12) |
|
17.1 How does the Translation API work? |
|
|
475 | (2) |
|
|
477 | (2) |
|
|
479 | (2) |
|
17.4 Understanding pricing |
|
|
481 | (1) |
|
17.5 Case study: translating InstaSnap captions |
|
|
481 | (4) |
|
18 Cloud Machine Learning Engine: managed machine learning |
|
|
485 | (34) |
|
18.1 What is machine learning? |
|
|
485 | (6) |
|
What are neural networks? |
|
|
486 | (2) |
|
|
488 | (3) |
|
18.2 What is Cloud Machine Learning Engine? |
|
|
491 | (7) |
|
|
492 | (3) |
|
|
495 | (3) |
|
18.3 Interacting with Cloud ML Engine |
|
|
498 | (16) |
|
Overview of US Census data |
|
|
498 | (1) |
|
|
499 | (2) |
|
|
501 | (2) |
|
|
503 | (3) |
|
|
506 | (3) |
|
Configuring your underlying resources |
|
|
509 | (5) |
|
18.4 Understanding pricing |
|
|
514 | (7) |
|
|
514 | (2) |
|
|
516 | (3) |
Part 5 Data Processing And Analytics |
|
519 | (70) |
|
19 BigQuery: highly scalable data warehouse |
|
|
521 | (26) |
|
|
521 | (7) |
|
|
522 | (1) |
|
|
522 | (3) |
|
|
525 | (3) |
|
19.2 Interacting with BigQuery |
|
|
528 | (16) |
|
|
528 | (5) |
|
|
533 | (9) |
|
|
542 | (2) |
|
19.3 Understanding pricing |
|
|
544 | (3) |
|
|
544 | (1) |
|
Data manipulation pricing |
|
|
545 | (1) |
|
|
545 | (2) |
|
20 Cloud Dataflow: large-scale data processing |
|
|
547 | (21) |
|
20.1 What is Apache Beam? |
|
|
549 | (7) |
|
|
550 | (5) |
|
|
555 | (1) |
|
20.2 What is Cloud Dataflow? |
|
|
556 | (1) |
|
20.3 Interacting with Cloud Dataflow |
|
|
557 | (8) |
|
|
557 | (2) |
|
|
559 | (1) |
|
Executing a pipeline locally |
|
|
560 | (1) |
|
Executing a pipeline using Cloud Dataflow |
|
|
561 | (4) |
|
20.4 Understanding pricing |
|
|
565 | (3) |
|
21 Cloud Pub/Sub: managed event publishing |
|
|
568 | (21) |
|
21.1 The headache of messaging |
|
|
569 | (1) |
|
21.2 What is Cloud Pub/Sub? |
|
|
569 | (1) |
|
|
569 | (3) |
|
|
572 | (4) |
|
|
572 | (1) |
|
|
572 | (2) |
|
|
574 | (1) |
|
|
575 | (1) |
|
|
576 | (5) |
|
Sending your first message |
|
|
576 | (2) |
|
Receiving your first message |
|
|
578 | (3) |
|
|
581 | (2) |
|
21.7 Understanding pricing |
|
|
583 | (1) |
|
|
584 | (5) |
|
Fan-out broadcast messaging |
|
|
584 | (3) |
|
|
587 | (2) |
Index |
|
589 | |