Google BigQuery (50 Qs)•Part 3: Enterprise FinOps, Disaster Recovery & Scale (25 - 35)
BigQuery Storage Write API: Stream ingestion with gRPC, write offsets, and committed vs pending streams.
senior LevelMost AskedgRPCMicroservicesHTTP & REST APIs
In Simple Words:
The modern high-throughput streaming ingestion API replacing legacy tabledata.insertAll:
- Uses binary gRPC and Protocol Buffers, delivering 10x higher ingestion speeds at 50% lower cost.
- Committed Stream: Records become immediately queryable in the table as soon as flushed.
- Pending Stream (Transactional Batch Ingestion):
- Workers stream millions of records into a temporary pending stream buffer.
- When the ETL batch finishes successfully, you execute an atomic
Commit. - If a worker crashes, the pending stream is discarded with zero partial write corruption.
- Supports Exactly-Once Semantics using client-provided stream write offsets.