Hands-On Reactive Programming with Reactor: Build reactive and scalable microservices using the Reactor framework
暫譯: 實作反應式程式設計與Reactor:使用Reactor框架構建反應式和可擴展的微服務
Rahul Sharma
- 出版商: Packt Publishing
- 出版日期: 2018-09-29
- 售價: $1,830
- 貴賓價: 9.5 折 $1,739
- 語言: 英文
- 頁數: 250
- 裝訂: Paperback
- ISBN: 1789135796
- ISBN-13: 9781789135794
-
相關分類:
Microservices 微服務、SOA、JVM 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Discover how project Reactor enhances the reactive programming paradigm and allows you to build scalable asynchronous applications
Key Features
- Use reactive APIs, Flux, and Mono to implement reactive extensions
- Create concurrent applications without the complexity of Java's concurrent API
- Understand techniques to implement event-driven and reactive applications
Book Description
Reactor is an implementation of the Java 9 Reactive Streams specification, an API for asynchronous data processing. This specification is based on a reactive programming paradigm, enabling developers to build enterprise-grade, robust applications with reduced complexity and in less time. Hands-On Reactive Programming with Reactor shows you how Reactor works, as well as how to use it to develop reactive applications in Java.
The book begins with the fundamentals of Reactor and the role it plays in building effective applications. You will learn how to build fully non-blocking applications and will later be guided by the Publisher and Subscriber APIs. You will gain an understanding how to use two reactive composable APIs, Flux and Mono, which are used extensively to implement Reactive Extensions. All of these components are combined using various operations to build a complete solution.
In addition to this, you will get to grips with the Flow API and understand backpressure in order to control overruns. You will also study the use of Spring WebFlux, an extension of the Reactor framework for building microservices.
By the end of the book, you will have gained enough confidence to build reactive and scalable microservices.
What you will learn
- Explore benefits of the Reactive paradigm and the Reactive Streams API
- Discover the impact of Flux and Mono implications in Reactor
- Expand and repeat data in stream processing
- Get to grips with various types of processors and choose the best one
- Understand how to map errors to make corrections easier
- Create robust tests using testing utilities offered by Reactor
- Find the best way to schedule the execution of code
Who this book is for
If you're looking to develop event- and data-driven applications easily with Reactor, this book is for you. Sound knowledge of Java fundamentals is necessary to understand the concepts covered in the book.
Table of Contents
- Getting started with Reactive Streams
- The Publisher and Subscriber APIs in a Reactor
- Data and Stream processing
- The fundamentals of Processors
- SpringWebFlux for Microservices
- Dynamic rendering
- Flow Control and Back Pressure
- Handling Errors
- Execution Model
- Testing and Debugging
商品描述(中文翻譯)
**探索 Project Reactor 如何增強反應式編程範式,並讓您構建可擴展的非同步應用程式**
#### 主要特點
- 使用反應式 API、Flux 和 Mono 實現反應式擴展
- 創建並發應用程式,而無需 Java 的並發 API 的複雜性
- 理解實現事件驅動和反應式應用程式的技術
#### 書籍描述
Reactor 是 Java 9 反應式流(Reactive Streams)規範的實現,這是一個用於非同步數據處理的 API。該規範基於反應式編程範式,使開發人員能夠構建企業級、穩健的應用程式,並減少複雜性和開發時間。《Hands-On Reactive Programming with Reactor》將向您展示 Reactor 的運作方式,以及如何使用它來開發 Java 中的反應式應用程式。
本書從 Reactor 的基本概念及其在構建有效應用程式中的角色開始。您將學習如何構建完全非阻塞的應用程式,並隨後由 Publisher 和 Subscriber API 指導。您將理解如何使用兩個反應式可組合 API,Flux 和 Mono,這些 API 被廣泛用於實現反應式擴展。所有這些組件都通過各種操作組合在一起,以構建完整的解決方案。
此外,您將掌握 Flow API,並理解反壓(backpressure)以控制溢出。您還將研究 Spring WebFlux 的使用,這是 Reactor 框架的擴展,用於構建微服務。
到書籍結束時,您將獲得足夠的信心來構建反應式和可擴展的微服務。
#### 您將學到什麼
- 探索反應式範式和反應式流 API 的好處
- 發現 Flux 和 Mono 在 Reactor 中的影響
- 在流處理中擴展和重複數據
- 理解各種類型的處理器並選擇最佳者
- 理解如何映射錯誤以簡化修正
- 使用 Reactor 提供的測試工具創建穩健的測試
- 找到最佳的代碼執行排程方式
#### 本書適合誰
如果您希望輕鬆使用 Reactor 開發事件和數據驅動的應用程式,本書適合您。理解 Java 基礎知識是理解本書所涵蓋概念的必要條件。
#### 目錄
1. 開始使用反應式流
2. Reactor 中的 Publisher 和 Subscriber API
3. 數據和流處理
4. 處理器的基本概念
5. 用於微服務的 Spring WebFlux
6. 動態渲染
7. 流控制和反壓
8. 錯誤處理
9. 執行模型
10. 測試和調試