Code RoomgRPC backpressure ingestion
HardPrep Room Coding #3763

gRPC backpressure ingestion

System designNetworking & APIsDistributed systemsSenior–Staff~45 min

Design a high-throughput gRPC ingestion service that accepts bidirectional streaming telemetry from 200k edge agents, each pushing batched metrics at up to 50k messages/sec aggregate. The service must apply backpressure when downstream storage is slow (rather than OOMing), keep p99 RPC latency bounded under load, fairly multiplex many streams over HTTP/2 connections without one heavy client starving others, and shed load gracefully during a downstream slowdown. Walk through the flow-control model, connection/stream handling, and the central trade-off.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:00 left
Estimate5:00 planned
Design15:00 planned
Deep dive12:00 planned
Failure8:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.