Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Publisher and Subscriber

Front

How do functional pipelines enhance reactive programming?

They allow transformation and combination of data streams efficiently. Functional pipelines, using operations like map() and flatMap(), enable…

View Card →
Flashcard Study

Java: Publisher and Subscriber

Front

How does a Subscriber request data in Reactive Streams?

A Subscriber requests data using the request(n) method. In Reactive Streams, a Subscriber signals its demand for data…

View Card →
Flashcard Study

Java: Publisher and Subscriber

Front

Why is a reactive stream considered lazy?

Reactive streams do not start processing until subscribe() is called. A reactive stream is lazy because it doesn't…

View Card →
Flashcard Study

Java: Publisher and Subscriber

Front

What role does a Publisher play in Reactive Streams?

A Publisher emits data, completion, or error signals to a Subscriber. In Reactive Streams, the Publisher is responsible…

View Card →
Flashcard Study

Java: Publisher and Subscriber

Front

How would you explain a Reactive Stream in an interview?

A Reactive Stream treats data as an asynchronous flowing river of events. Reactive Streams are a programming paradigm…

View Card →
Flashcard Study

Java: Non-Blocking I/O (Event Loops)

Front

How does WebFlux utilize an event loop for efficient resource management?

WebFlux uses an event loop to manage I/O operations efficiently, allowing a single thread to handle multiple connections.…

View Card →
Flashcard Study

Java: Non-Blocking I/O (Event Loops)

Front

Understanding the Thread-Per-Request Bottleneck?

Thread-per-request can lead to resource exhaustion under high load. In traditional server models, each HTTP request is handled…

View Card →
Flashcard Study

Java: Non-Blocking I/O (Event Loops)

Front

How does backpressure enhance system stability in Reactive Streams?

It prevents data overload by regulating flow between publisher and subscriber. Backpressure ensures the Subscriber is not overwhelmed…

View Card →
Flashcard Study

Java: Non-Blocking I/O (Event Loops)

Front

Why do teams use functional pipelines in Reactive Streams in production code?

They allow for concise and expressive data transformations. Functional pipelines, using operators like 'map' and 'filter', enable developers…

View Card →
Flashcard Study

Java: Non-Blocking I/O (Event Loops)

Front

How does WebFlux handle blocking database calls?

By offloading them to a separate thread pool. WebFlux uses a separate thread pool to execute blocking operations,…

View Card →