SlideShare a Scribd company logo
REACTIVE X
TALENT DEVELOPMENT, BINAR ACADEMY
FRIDAY, MAY 11, 2018
BACKGROUND
• Nowadays programming in an imperative single threaded way usually leads to
strange behaviors, blocking non responsive UIs and therefore a bad user
experience.
• This can be avoided by handling unpredicted things asynchronously. For
example actively waiting for a database query or a webservice call can cause
an application freeze, if the network is not responsive.
BACKGROUND
• Developing a complex Android app that has lots of network connections, user
interactions, and animations often means writing code that is full of nested
callbacks.
• Sometimes called callback hell, is not only lengthy and hard to understand,
hard to maintain.
• ReactiveX offers an alternative approach that is both clear and concise, to
manage asynchronous tasks and events.
REACTIVE-X
An API for asynchronous programming with
observable streams
Official website : http://reactivex.io/
OBSERVABLES, OBSERVERS AND OPERATOR
1. Observable
• Emit Item (Objects, Strings, Integers etc.).
• Does not start emitting till someone subscribes
2. Observer
• To watch Observables by subscribing to them and consumes data
3. Operator
• Transform, Filter, etc
Rx presentation
OBSERVER
onNext()
This method will be called when there is any new data emitted by the observer. The object that is emitted by the
observable can be found in argument parameters of this callback.
onError()
You will receive this callback whenever there is any error occurred on observable. (After all the world is not
perfect.)
onComplete()
Whenever observable is done with emitting the data streams, you will receive this callback. This indicates that
there is no more data to emit.
MARBLE DIAGRAM
OPERATOR
Create, Defer, Empty/Never/Throw, From, Interval, Just, Range, Repeat, Start, Timer, Buffer, FlatMap,
GroupBy, Map, Scan, Window, Debounce, Throttle, Distinct, ElementAt, Filter, First, IgnoreElements, Last,
Sample, Skip, SkipLast, Take, TakeLast, And/Then/When, CombineLatest, Join, Merge, StartWith, Switch,
Zip, Catch, Retry, Delay, Do, Materialize/Dematerialize, ObserveOn, Serialize, Subscribe, SubscribeOn,
TimeInterval, Timeout, Timestamp, Using, All, Amb, Contains, DefaultIfEmpty, SequenceEqual, SkipUntil,
SkipWhile, TakeUntil, TakeWhile, Average, Concat, Count, Max, Min, Reduce, Sum, Connect, Publish,
RefCount, Replay, To
MOSTLY USED OPERATORS
https://medium.com/@jshvarts/read-marble-diagrams-like-a-pro-
3d72934d3ef5
MORE SOURCES
• https://blog.mindorks.com/understanding-rxjava-subject-publish-replay-behavior-and-async-subject-
224d663d452f
• https://github.com/amitshekhariitbhu/RxJava2-Android-Samples
GITHUB REPO
https://github.com/limahfud/rx-basic-taldev

More Related Content

PDF
Compute fast of computer
PPTX
Training - What is Performance ?
PDF
Sharing-akka-pub
PPTX
Energy Monitoring With Self-taught Deep Network
PPTX
QTP Presentation
PDF
Autoencoder Forest for Anomaly Detection from IoT Time Series
PPT
Using minitab exec files
Compute fast of computer
Training - What is Performance ?
Sharing-akka-pub
Energy Monitoring With Self-taught Deep Network
QTP Presentation
Autoencoder Forest for Anomaly Detection from IoT Time Series
Using minitab exec files

Similar to Rx presentation (20)

PPTX
Mini training - Reactive Extensions (Rx)
PDF
Introduction to reactive programming
PPTX
Functional reactive programming
PPTX
Reactive programming with rx java
PPTX
Rxandroid
PPTX
RxAndroid
PPTX
Reactive programming with RxAndroid
PDF
Reactive by example - at Reversim Summit 2015
PPTX
Microservices Part 4: Functional Reactive Programming
PDF
Client-side Development 2016
PDF
RxJava pour Android : présentation lors du GDG Android Montréal
PDF
The hitchhiker’s guide to Prometheus
PDF
Prometheus monitoring
PDF
The hitchhiker’s guide to Prometheus
PDF
Rx Swift
PPTX
RxJava2 Slides
PDF
RxJava@Android
PPTX
TDC2016SP - Trilha Node.Js
PPTX
Case study 3
PDF
IPT High Performance Reactive Java BGOUG 2016
Mini training - Reactive Extensions (Rx)
Introduction to reactive programming
Functional reactive programming
Reactive programming with rx java
Rxandroid
RxAndroid
Reactive programming with RxAndroid
Reactive by example - at Reversim Summit 2015
Microservices Part 4: Functional Reactive Programming
Client-side Development 2016
RxJava pour Android : présentation lors du GDG Android Montréal
The hitchhiker’s guide to Prometheus
Prometheus monitoring
The hitchhiker’s guide to Prometheus
Rx Swift
RxJava2 Slides
RxJava@Android
TDC2016SP - Trilha Node.Js
Case study 3
IPT High Performance Reactive Java BGOUG 2016
Ad

Recently uploaded (20)

PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Mechanical Engineering MATERIALS Selection
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT 4 Total Quality Management .pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Foundation to blockchain - A guide to Blockchain Tech
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Internet of Things (IOT) - A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Geodesy 1.pptx...............................................
composite construction of structures.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Mechanical Engineering MATERIALS Selection
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT 4 Total Quality Management .pptx
Ad

Rx presentation