SRE & Observability (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What is Backpressure and how does it prevent buffer overflow?
senior Levelsre-observabilityAdvanced Internals
In Simple Words: When a fast data producer sends data faster than a slow consumer can process it:
- Without backpressure: In-memory buffers fill up, resulting in Out-Of-Memory crashes.
- Backpressure: The consumer signals the producer to slow down or halt transmission (e.g. TCP sliding window, reactive streams, pausing Kafka consumer partitions).