
This introduction explains reactive programming, driven by the observable and observer pattern, where events from a stream are observed and acted upon, enabling parallel calls and efficient throughput.
Explore the reactive manifesto’s guiding principles—message-driven, responsive, elastic, and resilient systems that use publish/subscribe, handle events promptly, scale with load, and recover from failures.
Explore reactive building blocks, featuring observable and observer patterns. See how on subscribe, on next, on complete, and on error drive real-time streams from movies to social feeds.
Github Link : https://github.com/CODINGSAINT/rxJava-tutorial
Explore creating an observable with observable.just in RxJava 2, emitting ten elements (A to J) and observing with a demo observer that logs subscribe, next, and complete.
Learn to build an observable from scratch in RxJava 2 using create, emit shapes (square, hexagon, pentagon, star) with colors, and manage on next, on error, and on complete.
Explore creating observables with defer in RxJava 2, which defers observable creation until subscription and produces a fresh observable for each subscriber, showcasing on next and on complete events.
Create an observable using interval to emit integers every one second and subscribe to observe on_next events, illustrating how the computation thread pool handles emissions.
Explore observable using timer in RxJava 2 to emit a single event after a delay, compare with interval, and subscribe with on next and on complete.
Discover RxJava 2's observable range, which emits a sequence from a starting number for a given count, shown by a range from 2 with 10 items on the main thread.
Create an observable from a callable in RxJava 2, demonstrating a two-second delay, future result, unsubscribe behavior, and the on complete event.
Compare observable without backpressure and flowable with backpressure, showing how flowable uses buffers and request-based delivery to prevent memory overflow, with examples of subscribe on and observe on.
Explore RxJava 2 reactive programming by learning operator basics, with emphasis on transforming and buffer operators and marble diagrams illustrating buffering items into lists for the next stage.
Explore the groupBy operator in RxJava 2, which groups stream items by a key into grouped observers. See how this grouping affects the emitted groups and threading.
Apply the map operator in RxJava 2 to transform each emitted item with a function, doubling numbers 1 to 10 before they reach the subscriber.
Learn how the flatMap operator flattens multiple inner observables into a single observable, returns an observable and does not guarantee order, with use cases like merging vehicle and model APIs.
Learn how the scan operator computes a running total by combining each new item with the previous result, emitting 1, 3, 6, 10, and so on.
Introduce RxJava 2 filtering operators that filter a stream and present data, covering distinct, filter, first, last, skip, take, and their skip last and take last variants.
Explore the debounce operator in RxJava 2, which emits items only after a period of user inactivity, illustrated by typing in a search box and waiting for results.
The lecture introduces the distinct operator in RxJava 2, showing how it removes duplicates from the stream to display only unique elements and previews the next operator.
Apply the elementAt operator to fetch the zero-based indexed element. If present, emit on success; if absent, complete without a value.
Learn the ignore elements operator in RxJava 2 to ignore all emitted items while still signaling completion or error, as shown when no elements are printed.
Explore the skip and skip last operators in RxJava 2, which ignore the first or last elements of a stream, demonstrated with a marble diagram and subscribe behavior.
Explore take and takeLast operators in RxJava 2, showing how take retrieves the first two elements and completes, while takeLast returns the last two, opposite of skip.
The filter operator in RxJava 2 filters a stream based on a condition, passing only items that meet it, such as colors blue or green, while others are ignored.
Explore the combine latest operator, which merges the latest items from two observables using a user-defined function and emits combined results such as 1a, 2b, and 3c from interval streams.
Learn how the RxJava 2 merge operator combines multiple streams into a single output, how errors propagate and stop publishing, and how marble diagrams illustrate the merging of observables.
Explore the RxJava 2 zip operator, which combines multiple streams with a defined function and emits joined results as events align, illustrated with a marble diagram.
Discover delay and do operators in RxJava 2, delaying stream emissions for a set time and performing actions on each event from subscription to completion.
Add timestamps to each event with a time stamp operator, then enforce timely emissions using a timeout operator in reactive programming, triggering errors when stream stalls and showing error handling.
Explore conditional operators in RxJava 2 by using the all operator to verify emitted numbers from the observable meet a condition, and the contains operator to check for a value.
Explore the skip until and take until operators in RxJava 2, showing how emissions wait for or stop at the second observable.
Explore how skip while and take while operate on an observable using a predicate to skip or take items until conditions become true, with practical examples of publishing and completing.
Reactive is not new in Software Engineering. Within few years, we have seen increase in reactive solutions at a large scale. Let us look what reactive programming actually means.
Reactive programming is a paradigm which enables to program for streams of data in non blocking (asynchronous) manner. It makes the solutions such that the system reacts to the stream of events.
This course is about Reactive Programming using Java. It will be helpful to you to learn further reactive programming using Java frameworks like Reactive Spring and others.
This course can be used for learning basic paradigm of reactive programming
In this course we will cover
Reactive Programming Paradigm using Java Framework
Reactive Paradigm and Reactive Manifesto
Reactive Observable
Backpressure and Flowables
Using Different Type of Operators
Operators for filtering observables
Operator for transforming observables
Operator for combining observables
Utility Operators on observables
Conditional Operator on observables