Learning Reactive Programming with Java 8

Learn how to use RxJava and its reactive Observables to build fast, concurrent, and powerful applications through detailed examples
Preview in Mapt

Learning Reactive Programming with Java 8

Nickolay Tsvetinov

1 customer reviews
Learn how to use RxJava and its reactive Observables to build fast, concurrent, and powerful applications through detailed examples
Mapt Subscription
FREE
$29.99/m after trial
eBook
$7.20
RRP $35.99
Save 79%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$7.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Reactive Programming with Java 8 Book Cover
Learning Reactive Programming with Java 8
$ 35.99
$ 7.20
Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 30.80
Buy 2 for $24.70
Save $55.28
Add to Cart

Book Details

ISBN 139781785288722
Paperback182 pages

Book Description

Whether you are a Java expert or at a beginner level, you'll benefit from this book, because it will teach you a brand new way of coding and thinking.

The book starts with an explanation of what reactive programming is, why it is so appealing, and how we can integrate it in to Java. It continues by introducing the new Java 8 syntax features, such as lambdas and function references, and some functional programming basics. From this point on, the book focuses on RxJava in depth. It goes through creating Observables, transforming, filtering, and combining them, and concurrency and testing to finish with extending the library itself.

This book is a definite tutorial in RxJava filled with a lot of well-described examples. It explains reactive programming concepts in plain and readable language, without scientific formulas and terms.

Table of Contents

Chapter 1: An Introduction to Reactive Programming
What is reactive programming?
Why should we be reactive?
Introducing RxJava
Summary
Chapter 2: Using the Functional Constructions of Java 8
Lambdas in Java 8
Implementing the reactive sum example with lambdas
Pure functions and higher order functions
Summary
Chapter 3: Creating and Connecting Observables, Observers, and Subjects
The Observable.from method
The Observable.just method
Other Observable factory methods
The Observable.create method
Subscribing and unsubscribing
Hot and cold Observable instances
The Subject instances
Summary
Chapter 4: Transforming, Filtering, and Accumulating Your Data
Observable transformations
Filtering data
Accumulating data
Summary
Chapter 5: Combinators, Conditionals, and Error Handling
Combining the Observable instances
The conditional operators
Handling errors
An HTTP client example
Summary
Chapter 6: Using Concurrency and Parallelism with Schedulers
RxJava's schedulers
Buffering, throttling, and debouncing
Summary
Chapter 7: Testing Your RxJava Application
Testing using simple subscription
The BlockingObservable class
The aggregate operators and the BlockingObservable class
Testing with the aggregate operators and the BlockingObservable class
Using the TestSubscriber class for in-depth testing
Testing asynchronous Observable instances with the help of the TestScheduler class
Summary
Chapter 8: Resource Management and Extending RxJava
Resource management
Caching data with Observable.cache
Creating custom operators with lift
Composing multiple operators with the Observable.compose operator
Summary

What You Will Learn

  • Discover what reactive programming is and how you can benefit from it
  • Get to grips with the new functional features of Java 8 and some functional theory
  • Create RxJava Observable instances from virtually any data source
  • Transform, filter, and accumulate your data using various RxJava operators
  • Combine multiple data sources in one dataset, using custom logic
  • Write concurrent programs with ease, scheduling actions on various workers
  • Learn about unit testing asynchronous RxJava logic
  • Extend RxJava by writing your own operators and factory methods

Authors

Table of Contents

Chapter 1: An Introduction to Reactive Programming
What is reactive programming?
Why should we be reactive?
Introducing RxJava
Summary
Chapter 2: Using the Functional Constructions of Java 8
Lambdas in Java 8
Implementing the reactive sum example with lambdas
Pure functions and higher order functions
Summary
Chapter 3: Creating and Connecting Observables, Observers, and Subjects
The Observable.from method
The Observable.just method
Other Observable factory methods
The Observable.create method
Subscribing and unsubscribing
Hot and cold Observable instances
The Subject instances
Summary
Chapter 4: Transforming, Filtering, and Accumulating Your Data
Observable transformations
Filtering data
Accumulating data
Summary
Chapter 5: Combinators, Conditionals, and Error Handling
Combining the Observable instances
The conditional operators
Handling errors
An HTTP client example
Summary
Chapter 6: Using Concurrency and Parallelism with Schedulers
RxJava's schedulers
Buffering, throttling, and debouncing
Summary
Chapter 7: Testing Your RxJava Application
Testing using simple subscription
The BlockingObservable class
The aggregate operators and the BlockingObservable class
Testing with the aggregate operators and the BlockingObservable class
Using the TestSubscriber class for in-depth testing
Testing asynchronous Observable instances with the help of the TestScheduler class
Summary
Chapter 8: Resource Management and Extending RxJava
Resource management
Caching data with Observable.cache
Creating custom operators with lift
Composing multiple operators with the Observable.compose operator
Summary

Book Details

ISBN 139781785288722
Paperback182 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 30.80
Learning Modular Java Programming Book Cover
Learning Modular Java Programming
$ 27.99
$ 19.60
Android Programming for Beginners Book Cover
Android Programming for Beginners
$ 39.99
$ 28.00
Spring Microservices Book Cover
Spring Microservices
$ 39.99
$ 28.00
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Neural Network Programming with Java Book Cover
Neural Network Programming with Java
$ 35.99
$ 7.20