Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Blocking the Event Loop

Front

What happens if you block an Event Loop in a non-blocking framework?

It can lead to server crashes. Frame the concept in practical terms so you can explain it during…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

How can map and flatMap be used in reactive streams?

map transforms data; flatMap handles asynchronous sequences. map is used to transform data within the same stream, like…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

Why is using legacy JDBC in WebFlux risky in production code?

It blocks threads, reducing performance. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

How does WebFlux handle backpressure?

Subscribers request data as needed. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

Why use R2DBC instead of JDBC in WebFlux?

R2DBC is non-blocking, JDBC is blocking. Frame the concept in practical terms so you can explain it during…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

How would you explain a Publisher in Reactive Streams in an interview?

It emits data to Subscribers. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

Why is blocking the Event Loop dangerous in WebFlux?

It can cripple server responsiveness. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

Why does backpressure in Reactive Streams matter in practice?

Control data flow to prevent overload. Frame the concept in practical terms so you can explain it during…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

How does Flux differ from Mono in Project Reactor?

Flux handles multiple items; Mono handles zero or one. Flux is like a stream that can emit multiple…

View Card →
Flashcard Study

Java: Blocking the Event Loop

Front

Why avoid Thread.sleep() in a WebFlux handler?

Blocks the event loop, halting all progress. Calling Thread.sleep() in a WebFlux handler blocks the event loop, causing…

View Card →