Chương 28: Cloud Storage — Kiến Trúc, Tính Nhất Quán và Hiệu Năng
Google Cloud Storage (GCS) là universal data store của GCP — mọi pipeline đều đổ dữ liệu qua đây: backup, ML training data, event archiving, static assets, data lake. Không hiểu cơ chế bên trong của GCS nghĩa là không hiểu toàn bộ data plane của GCP.
Chương này tập trung vào cơ chế vận hành thực sự của GCS: object model, consistency guarantee, storage tier và location type ảnh hưởng thế nào đến availability/cost, lifecycle engine, access control multi-layer, FUSE semantics, và performance scaling model.
Mục Lục
Nhóm Kiến Trúc Cốt Lõi
Object Model, Buckets, Generations & Consistency — Cơ chế lưu trữ bên trong: bucket namespace, object immutability, generation numbers, metageneration, và strong consistency model post-2021 với các edge case quan trọng.
Storage Classes & Location Types — Cơ chế phân tầng Standard/Nearline/Coldline/Archive; replication mechanics của multi-region/dual-region/regional; trade-off availability, durability, cost và retrieval latency.
Lifecycle Management — Tiering & Deletion Automation — Rule evaluation engine, conditions, actions, và các giới hạn ẩn của lifecycle policies; Autoclass so với manual tiering.
Nhóm Access Control & Security
Access Control: IAM, ACLs, Signed URLs & Requester Pays — Uniform bucket-level access, IAM vs ACL evaluation model, V4 Signed URL signing mechanics, Requester Pays cost model.
VPC Service Controls Integration — GCS với VPC-SC perimeter: cơ chế enforce ở API layer, restricted VIP, ingress/egress rules cho data exfiltration prevention.
Nhóm Interfaces & Migration
Cloud Storage FUSE — POSIX Interface Trên Object Storage — Kiến trúc FUSE adapter, semantics gaps so với POSIX, caching layers, throughput characteristics, use cases và anti-patterns.
Transfer Service — Bulk Migration & Scheduled Ingestion — Transfer Service internals: job types, scheduling, bandwidth management, checksum verification và các pattern migration thực tế.
Nhóm Hiệu Năng
- Performance: Throughput Scaling & Parallel Operations — Auto-scaling model của GCS, object naming và hotspot avoidance, parallel upload/download patterns, composite objects, và performance ceilings thực tế.
Điều Kiện Tiên Quyết
- Object storage concepts (key-value semantics, không phải filesystem)
- HTTP/S fundamentals (request/response, headers, authentication)
- IAM GCP cơ bản (principals, roles, bindings)
Mức Độ Sâu
4/5 — Nặng về cơ chế nội bộ, consistency model, và performance internals. Ít tập trung vào cấu hình cơ bản.