Java: Publisher and Subscriber
How would you explain the danger of emitting more data than requested in an interview?
It can overwhelm the Subscriber, leading to potential data loss or processing delays. Emitting more data than the…
View Card →Quick study sessions to strengthen memory and retain key concepts.
How would you explain the danger of emitting more data than requested in an interview?
It can overwhelm the Subscriber, leading to potential data loss or processing delays. Emitting more data than the…
View Card →What are the mathematical rules of Reactive Streams?
Reactive Streams follow rules for data flow control, including demand, onNext, onError, and onComplete. Reactive Streams are governed…
View Card →What happens when you call subscribe() on a stream?
It initiates data processing and signals demand to the Publisher. Calling subscribe() on a reactive stream triggers the…
View Card →How does backpressure control data flow?
Backpressure allows Subscribers to control the rate of data flow from Publishers. Backpressure is a key feature in…
View Card →Why is it important for streams to be lazy?
Streams do not process data until explicitly subscribed, conserving resources. Reactive Streams are lazy, meaning they wait for…
View Card →What are the consequences of blocking the Event Loop?
Blocking can stall the entire system, leading to performance degradation. In a non-blocking architecture, the event loop is…
View Card →How do Mono and Flux differ in Project Reactor?
Mono handles zero or one item, while Flux handles zero to many items. Mono and Flux are two…
View Card →Why does the Publisher in Reactive Streams matter in this design?
The Publisher produces data asynchronously and signals it to the Subscriber. In Reactive Streams, the Publisher is responsible…
View Card →Why is it crucial for a Publisher to signal onComplete() or onError() only once?
To maintain the integrity of the stream contract and avoid undefined behavior. The Reactive Streams specification mandates that…
View Card →What are the dangers of blocking the Event Loop in Reactive Streams?
Blocking the Event Loop can cause performance bottlenecks. Blocking operations in an Event Loop can severely affect performance,…
View Card →