Reactive Programming With Java 9
暫譯: 使用 Java 9 的反應式編程
Tejaswini Mandar Jog
- 出版商: Packt Publishing
- 出版日期: 2017-09-20
- 售價: $2,030
- 貴賓價: 9.5 折 $1,929
- 語言: 英文
- 頁數: 402
- 裝訂: Paperback
- ISBN: 1787124231
- ISBN-13: 9781787124233
-
相關分類:
Java 程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Learn about Java 9's Flow API, Reactive programming along with Kafka and Mockito, and how these aspects are utilized by RxJava
- Build fast and concurrent applications with ease, without the complexity of Java's concurrent API and shared states, with the help of Spring
- Explore a wide variety of code examples to easily get used to all the features and tools provided by RxJava
Book Description
Reactive programming is an asynchronous programming model that helps you tackle the essential complexity that comes with writing such applications.
Using Reactive programming to start building applications is not immediately intuitive to a developer who has been writing programs in the imperative paradigm. To tackle the essential complexity, Reactive programming uses declarative and functional paradigms to build programs. This book sets out to make the paradigm shift easy.
This book begins by explaining what Reactive programming is, the Reactive manifesto, and the Reactive Streams specifi cation. It uses Java 9 to introduce the declarative and functional paradigm, which is necessary to write programs in the Reactive style. It explains Java 9’s Flow API, an adoption of the Reactive Streams specifi cation. From this point on, it focuses on RxJava 2.0, covering topics such as creating, transforming,fi ltering, combining, and testing Observables. It discusses how to use Java’s popular framework, Spring, to build event-driven, Reactive applications. You will also learn how to implement resiliency patterns using Hystrix. By the end, you will be fully equipped with the tools and techniques needed to implement robust, event-driven, Reactive applications.
What you will learn
- Understand the Reactive Manifesto
- Grasp the Reactive Streams types introduced in Java 9 in the form of the Flow API
- Use RxJava, a Reactive Streams implementation, to build asynchronous applications
- Build responsiveness and resilience into applications using RxJava operators
- Demonstrate the usage of Hystrix, a latency and fault tolerance library from Netfl ix that uses RxJava
- Implement Reactive web applications using Spring Framework 5 and RxJava
About the Author
Tejaswini Mandar Jog is a passionate and enthusiastic Java trainer. She has more than nine years of experience in the IT training field, specializing in Java, J2EE, Spring, and relevant technologies. She has worked with many renowned corporate companies on training and skill enhancement programs. She is also involved in the development of projects using Java, Spring, and Hibernate. Tejaswini has written two books. In her first book, Learning Modular Java Programming, the reader explores the power of modular programming to build applications with Java and Spring. The second book, Learning Spring 5.0, explores building an application using the Spring 5.0 framework with the latest modules such as WebFlux for dealing with reactive programming.
Table of Contents
- Introduction to reactive programming
- Programming paradigm shift
- Reactive streams
- Reactive types in RxJava
- Operators
- Building responsiveness
- Building resiliency
- Testing
- Spring reactive web
- Implementing resiliency patterns using Hystrix
- Reactive Data Access
商品描述(中文翻譯)
關鍵特點
- 了解 Java 9 的 Flow API、反應式編程以及 Kafka 和 Mockito,並學習這些方面如何被 RxJava 利用
- 輕鬆構建快速且並發的應用程式,無需面對 Java 的並發 API 和共享狀態的複雜性,並借助 Spring 的幫助
- 探索各種代碼範例,輕鬆熟悉 RxJava 提供的所有功能和工具
書籍描述
反應式編程是一種非同步編程模型,幫助您應對編寫此類應用程式所帶來的基本複雜性。
對於習慣於命令式範式的開發者來說,使用反應式編程來開始構建應用程式並不是立即直觀的。為了應對基本的複雜性,反應式編程使用聲明式和函數式範式來構建程式。本書旨在使這一範式轉變變得簡單。
本書首先解釋了什麼是反應式編程、反應式宣言以及反應式流的規範。它使用 Java 9 來介紹聲明式和函數式範式,這是以反應式風格編寫程式所必需的。它解釋了 Java 9 的 Flow API,這是對反應式流規範的採用。從這一點開始,重點轉向 RxJava 2.0,涵蓋創建、轉換、過濾、組合和測試 Observables 等主題。它討論了如何使用 Java 的流行框架 Spring 來構建事件驅動的反應式應用程式。您還將學習如何使用 Hystrix 實現韌性模式。到最後,您將完全掌握實現穩健的事件驅動反應式應用程式所需的工具和技術。
您將學到的內容
- 了解反應式宣言
- 掌握 Java 9 中以 Flow API 形式引入的反應式流類型
- 使用 RxJava(反應式流的實現)來構建非同步應用程式
- 使用 RxJava 操作符為應用程式構建響應性和韌性
- 演示 Hystrix 的使用,這是一個來自 Netflix 的延遲和容錯庫,使用 RxJava
- 使用 Spring Framework 5 和 RxJava 實現反應式網頁應用程式
關於作者
**Tejaswini Mandar Jog** 是一位充滿熱情和熱忱的 Java 培訓師。她在 IT 培訓領域擁有超過九年的經驗,專注於 Java、J2EE、Spring 及相關技術。她曾與許多知名企業合作進行培訓和技能提升計劃。她還參與使用 Java、Spring 和 Hibernate 開發項目。Tejaswini 已經撰寫了兩本書。在她的第一本書《學習模組化 Java 編程》中,讀者探索了模組化編程的力量,以使用 Java 和 Spring 構建應用程式。第二本書《學習 Spring 5.0》探討了使用 Spring 5.0 框架及最新模組(如 WebFlux)來處理反應式編程的應用程式構建。
目錄
1. 反應式編程介紹
2. 編程範式轉變
3. 反應式流
4. RxJava 中的反應式類型
5. 操作符
6. 構建響應性
7. 構建韌性
8. 測試
9. Spring 反應式網頁
10. 使用 Hystrix 實現韌性模式
11. 反應式數據訪問