Learning RxJava
暫譯: 學習 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,這是用於構建可擴展和高效能反應式應用程式的 RxJava 核心組件
- 深入探討實用工具的實作,以有效應對複雜任務,如併發和反壓
## 本書適合誰
本書的主要讀者是至少具備基本 Java 知識的開發人員。
一些讀者可能會對 RxJava 感興趣,以使程式更具彈性、併發性和可擴展性。其他人可能只是想了解反應式程式設計的內容,並評估它是否能解決他們可能遇到的問題。
## 您將學到什麼
- 學習 RxJava 2 的特性,帶來許多重要變化,包括新的反應式類型,如 Flowable、Single、Maybe 和 Completable
- 了解反應式程式設計的運作方式以及「反應式思考」的心態
- 解密 Observable,了解它如何快速將數據和事件表達為序列
- 學習各種 Rx 運算子,這些運算子用於轉換、過濾和組合數據及事件序列
- 利用多播將數據推送到多個目的地,並進行快取和重播
- 探索 RxJava 中的併發和並行化如何運作,以及它如何使這些傳統上複雜的任務變得簡單
- 將 RxJava 和 Retrolambda 應用於 Android 領域,創建具有更佳用戶體驗的響應式 Android 應用程式
- 使用 Kotlin 語言與 RxJava 結合,通過擴展函數、數據類和其他 Kotlin 特性更具慣用性地表達 RxJava
## 詳細內容
RxJava 是一個用於組合異步和基於事件的程式的庫,使用 Observable 序列在 JVM 上運行,允許開發人員在更短的時間內構建穩健的應用程式。
學習 RxJava 涉及反應式程式設計的所有基本概念,幫助讀者編寫反應式代碼,並教會他們設計和實作反應式庫和應用程式的有效方法。
本書從簡要介紹反應式程式設計概念開始,概述 Observables 和 Observers,這是 RxJava 的核心組件,以及如何將不同的數據和事件流結合在一起。您還將學習更簡單的方法來實現併發並保持高效能,無需進行同步。稍後,我們將利用反壓和其他策略來應對快速生成的來源,以防止應用程式中的瓶頸。在涵蓋自定義運算子、測試和除錯後,本書深入探討在 Android 和 Kotlin 上使用 RxJava 的實作範例。
## 風格與方法
本書將與其他 Rx 書籍不同,採取全面涵蓋 Rx 概念和實用應用的方式。