Learning RxJava
Thomas Nield
- 出版商: Packt Publishing
- 出版日期: 2017-06-21
- 定價: $1,780
- 售價: 6.0 折 $1,068
- 語言: 英文
- 頁數: 400
- 裝訂: Paperback
- ISBN: 1787120422
- ISBN-13: 9781787120426
-
相關分類:
Java 程式語言
立即出貨(限量) (庫存=2)
買這商品的人也買了...
-
$880$695 -
$620$490 -
$594RxJava Essentials
-
$1,560$1,482
相關主題
商品描述
Reactive Programming with Java and ReactiveX
About This Book
- Explore the essential tools and operators RxJava provides, and know which situations to use them in
- Delve into Observables and Subscribers, the core components of RxJava used for building scalable and performant reactive applications
- Delve into the practical implementation of tools to effectively take on complex tasks such as concurrency and backpressure
Who This Book Is For
The primary audience for this book is developers with at least a fundamental mastery of Java.
Some readers will likely be interested in RxJava to make programs more resilient, concurrent, and scalable. Others may be checking out reactive programming just to see what it is all about, and to judge whether it can solve any problems they may have.
What You Will Learn
- Learn the features of RxJava 2 that bring about many significant changes, including new reactive types such as Flowable, Single, Maybe, and Completable
- Understand how reactive programming works and the mindset to "think reactively"
- Demystify the Observable and how it quickly expresses data and events as sequences
- Learn the various Rx operators that transform, filter, and combine data and event sequences
- Leverage multicasting to push data to multiple destinations, and cache and replay them
- Discover how concurrency and parallelization work in RxJava, and how it makes these traditionally complex tasks trivial to implement
- Apply RxJava and Retrolambda to the Android domain to create responsive Android apps with better user experiences
- Use RxJava with the Kotlin language to express RxJava more idiomatically with extension functions, data classes, and other Kotlin features
In Detail
RxJava is a library for composing asynchronous and event-based programs using Observable sequences for the JVM, allowing developers to build robust applications in less time.
Learning RxJava addresses all the fundamentals of reactive programming to help readers write reactive code, as well as teach them an effective approach to designing and implementing reactive libraries and applications.
Starting with a brief introduction to reactive programming concepts, there is an overview of Observables and Observers, the core components of RxJava, and how to combine different streams of data and events together. You will also learn simpler ways to achieve concurrency and remain highly performant, with no need for synchronization. Later on, we will leverage backpressure and other strategies to cope with rapidly-producing sources to prevent bottlenecks in your application. After covering custom operators, testing, and debugging, the book dives into hands-on examples using RxJava on Android as well as Kotlin.
Style and approach
This book will be different from other Rx books, taking an approach that comprehensively covers Rx concepts and practical applications.
商品描述(中文翻譯)
《使用Java和ReactiveX進行反應式編程》
關於本書
- 探索RxJava提供的基本工具和運算子,並了解何時在哪些情況下使用它們
- 深入研究Observables和Subscribers,這是構建可擴展和高性能反應式應用程序的核心組件
- 深入研究實際工具的實現,以有效地應對複雜任務,如並發和背壓
本書的讀者群
本書的主要讀者是具有至少基本掌握Java的開發人員。
一些讀者可能對RxJava感興趣,以使程序更具彈性、並發性和可擴展性。其他人可能只是想了解反應式編程是什麼,以及它是否能解決他們可能遇到的任何問題。
你將學到什麼
- 學習RxJava 2的功能,帶來許多重大變化,包括新的反應式類型,如Flowable、Single、Maybe和Completable
- 了解反應式編程的工作原理和“反應式思維方式”
- 揭開Observable的神秘面紗,以及它如何快速將數據和事件表達為序列
- 學習各種Rx運算符,可以轉換、過濾和結合數據和事件序列
- 利用多播將數據推送到多個目的地,並對其進行緩存和重放
- 發現RxJava中的並發和並行處理方式,以及它如何使這些傳統上複雜的任務變得簡單易於實現
- 將RxJava和Retrolambda應用於Android領域,以創建具有更好用戶體驗的響應式Android應用程序
- 使用Kotlin語言表達更符合慣例的RxJava,包括擴展函數、數據類和其他Kotlin特性
詳細內容
RxJava是一個用於使用Observable序列在JVM上編寫異步和基於事件的程序的庫,使開發人員能夠在更短的時間內構建強大的應用程序。
《學習RxJava》涵蓋了反應式編程的所有基礎知識,幫助讀者寫出反應式代碼,並教授他們設計和實現反應式庫和應用程序的有效方法。
從簡要介紹反應式編程概念開始,概述了RxJava的核心組件Observables和Observers,以及如何將不同的數據和事件流結合在一起。您還將學習更簡單的方法來實現並發性和高性能,無需同步。隨後,我們將利用背壓和其他策略來應對快速生成的源,以防止應用程序出現瓶頸。在涵蓋自定義運算符、測試和調試之後,本書還將深入介紹在Android和Kotlin上使用RxJava的實際示例。
風格和方法
本書與其他Rx書籍不同,採用全面涵蓋Rx概念和實際應用的方法。