Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Backpressure Strategies

Front

How does the danger of blocking the Event Loop manifest in Reactive Streams?

It can lead to performance bottlenecks and responsiveness issues. Blocking operations in the Event Loop can cause delays…

View Card →
Flashcard Study

Java: Backpressure Strategies

Front

What are the strategies for handling backpressure in Project Reactor?

Buffering, dropping, and latest. Frame the concept in practical terms so you can explain it during interview discussion.…

View Card →
Flashcard Study

Java: Backpressure Strategies

Front

How does the request(n) method work in Reactive Streams?

It lets Subscribers request a specific number of items from the Publisher. In Reactive Streams, the Subscriber uses…

View Card →
Flashcard Study

Java: Backpressure Strategies

Front

Why is dropping order-confirmation events usually unsafe?

Because those events represent durable business facts that usually must not be lost. A stream of order or…

View Card →
Flashcard Study

Java: Backpressure Strategies

Front

When is dropping old values an acceptable backpressure strategy?

When the stream is a live view where only the newest value matters, such as a price ticker…

View Card →
Flashcard Study

Java: Java Modules (JPMS)

Front

Why might integration tests be worth the cost in complex applications?

They verify interactions between system components, catching errors unit tests miss. Integration tests ensure that different parts of…

View Card →
Flashcard Study

Java: Java Modules (JPMS)

Front

What are the trade-offs between using Maven and Gradle for build automation?

Maven offers stability and convention, while Gradle provides flexibility and performance. Maven uses a fixed lifecycle and is…

View Card →
Flashcard Study

Java: Java Modules (JPMS)

Front

How would you explain a common pitfall when using JPMS in an interview?

Not declaring all necessary module dependencies in module-info.java. A common mistake is forgetting to declare all required modules…

View Card →
Flashcard Study

Java: Java Modules (JPMS)

Front

How does mocking help isolate dependencies in unit tests?

Mocking simulates interactions with dependencies, allowing unit tests to focus on the code under test. Mocking is a…

View Card →
Flashcard Study

Java: Java Modules (JPMS)

Front

Why does strong encapsulation matter in a modular Java application?

Strong encapsulation prevents unintended dependencies and increases maintainability. Strong encapsulation ensures that internal implementation details are not exposed…

View Card →