Author Archives: Stanislav_Panteleev

Java.Reactive.What is the role of Subscription in reactive programming?

the Subscription plays a pivotal role in managing flow control and resource management in reactive programming. Let’s break it down 👇 🎯 What is a Subscription? In Reactive Streams (Java 9 Flow API, RxJava, Reactor, Akka Streams), a Subscription is … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.What is the role of Subscription in reactive programming?

Java.Reactive.Tell me about RxJava, Project Reactor, Spring WebFlux, Akka Streams. Lets look at one simple example written on each of that libs with cold and hot subscription ?

Let’s compare RxJava, Project Reactor, Spring WebFlux, and Akka Streams, each with simple Cold vs Hot observable examples.

Posted in Без рубрики | Comments Off on Java.Reactive.Tell me about RxJava, Project Reactor, Spring WebFlux, Akka Streams. Lets look at one simple example written on each of that libs with cold and hot subscription ?

Java.Multithreading.What is java reactive flow ?

Java Reactive Flow, which is part of the Reactive Streams specification — the foundation of modern reactive libraries like RxJava, Project Reactor, and Akka Streams. 🌊 What is Java Reactive Flow? ✅ It’s a standard API introduced in Java 9 … Continue reading →

Posted in Без рубрики | Comments Off on Java.Multithreading.What is java reactive flow ?

Java.Reactive.Explain the difference between Hot and Cold Observable

Understanding the difference between Hot and Cold Observables is crucial to mastering RxJava and reactive programming in general — especially when working with time-sensitive or shared data sources. Let’s break it down clearly and visually 👇 ❄️ Cold Observable 📌 … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.Explain the difference between Hot and Cold Observable

Java.Reactive.🎯 Who is the Consumer in Reactive Programming?

🧠 Summary Backpressure = “Slow down! I can’t handle that much data right now!” Prevents overwhelming the consumer. Crucial for building robust, scalable, and memory-safe reactive systems. In a reactive stream, the consumer is the Observer / Subscriber — the … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.🎯 Who is the Consumer in Reactive Programming?

Java.Reactive.What is backpressure in the context of reactive programming?

🙌 Backpressure is one of the most important — and often misunderstood — concepts in reactive programming, especially when dealing with asynchronous streams. Let’s unpack it clearly 👇 🔄 What is Backpressure? Backpressure refers to a situation and a mechanism … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.What is backpressure in the context of reactive programming?

Java.Reactive.Describe the role of Observable and Observer in reactive programming

🎯 Goal of Reactive Programming: To react to a stream of data/events over time, in a non-blocking, asynchronous, and declarative way. This is achieved by two main players: 🧩 1. Observable<T> — The Data Source ✅ What it is: An … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.Describe the role of Observable and Observer in reactive programming

Java.Reactive.What is the Observer pattern and how does it underlie reactive programming?

The Observer Pattern is a behavioral design pattern where: One object (the Subject) maintains a list of Observers. When the Subject’s state changes, it notifies all its Observers. Think of it like a subscription model: You (Observer) subscribe to a … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.What is the Observer pattern and how does it underlie reactive programming?

Java.Reactive.How Many Threads Can You Have in RxJava?

📌 It depends on the Scheduler you use. ✅ Schedulers.io() Purpose: For I/O-bound tasks like DB calls, file access, HTTP calls. Type: Cached thread pool (like Java’s Executors.newCachedThreadPool()). Threads: Unbounded (new threads created as needed, idle ones reused). Good for: … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive.How Many Threads Can You Have in RxJava?

Java.Reactive. observeOn(Schedulers.io()) — What does it really do?

This line changes the thread where the subscriber and everything downstream of it will run. 🔧 The Reactive Pipeline Has Stages Imagine this code: Here’s what happens: just(“Stanley”) emits the data. .map(…) transforms it (runs on the same thread as … Continue reading →

Posted in Без рубрики | Comments Off on Java.Reactive. observeOn(Schedulers.io()) — What does it really do?