Java: Blocking the Event Loop
How would you explain a Mono in Project Reactor in an interview?
Mono represents a single item or an empty result. Mono is a reactive type that emits zero or…
View Card →Quick study sessions to strengthen memory and retain key concepts.
How would you explain a Mono in Project Reactor in an interview?
Mono represents a single item or an empty result. Mono is a reactive type that emits zero or…
View Card →Why should you avoid blocking calls in WebFlux?
Blocking calls can freeze the event loop, causing severe performance issues. In a WebFlux application, each request runs…
View Card →Why is blocking the event loop so damaging in WebFlux?
Because a small number of shared event-loop threads must stay free to keep many connections responsive. If an…
View Card →How do backpressure strategies help manage data flow between fast Publishers and slow Subscribers?
Backpressure strategies allow Subscribers to control data flow by signaling how much data they can handle. In Reactive…
View Card →How does onBackpressureBuffer help in reactive programming?
It temporarily stores data to cope with slow Subscribers. onBackpressureBuffer allows Reactive Streams to buffer data when a…
View Card →How would you explain the 'request(n)' pattern in backpressure in an interview?
It manages the flow of data between Publisher and Subscriber. The request(n) method allows a Subscriber to control…
View Card →How does WebFlux compare to Virtual Threads in handling concurrency?
WebFlux is non-blocking; Virtual Threads use lightweight blocking. WebFlux relies on non-blocking event-driven architecture for concurrency, while Virtual…
View Card →When should you prefer map over flatMap?
Use map for simple transformations, flatMap for asynchronous operations. The map operator is used for straightforward, synchronous transformations,…
View Card →How can you configure data dropping in backpressure?
Use operators like onBackpressureDrop. Frame the concept in practical terms so you can explain it during interview discussion.…
View Card →How would you explain a functional pipeline in Reactive Streams in an interview?
A sequence of transformations applied to data. Functional pipelines in Reactive Streams transform data step-by-step using operators like…
View Card →