- Hands-On Reactive Programming in Spring 5
- Oleh Dokuka Igor Lozynskyi
- 418字
- 2021-07-23 16:36:13
Foreword
Reactive programming is finally getting the attention it deserves with the help of famous Java names such as Spring Boot and Spring Framework. Which qualifier would you use to describe Spring solutions? The usual answer I hear and read from various users—pragmatic. The reactive support offered is no exception, and the team has chosen to keep supporting both reactive and non-reactive stacks. With choice comes responsibility, it is, therefore, critical to understand when to design your application "the reactive way" and what best practices you can apply to your next production-ready systems.
Spring positions itself as a provider of the best tooling available to write all kinds of microservices. With its reactive stack, Spring helps developers to create incredibly efficient, available, and resilient endpoints. As a byproduct, reactive Spring microservices tolerate network latency and cope with failure in a much less impacting way. Think about it—it's the right solution if you are writing an Edge API, a mobile backend, or a heavily mutualized microservice! The secret? Reactive microservices isolate slow transactions and reward the fastest.
Once you have qualified your needs, Project Reactor will be a reactive foundation of choice that will naturally pair with your reactive Spring project. In its latest 3.x iterations, it implements most of the Reactive extensions described first by Microsoft in 2011. Along with a standard vocabulary, Reactor introduces first-class support for Reactive Streams flow control at every functional stage and unique features such as Context passing.
In a synthetic but not simplistic set of example-driven chapters, Oleh and Igor describe a fantastic journey into reactive programming and reactive systems. After a quick context setting, reminding the history and challenges of Project Reactor, we quickly dive into ready-to-use examples running on Spring Boot 2. The book never does miss an occasion to seriously cover testing, giving a clear idea on how to produce quality reactive code.
Oleh and Igor perfectly introduce their readers to those reactive design patterns for the scalability needs of today and tomorrow. The authors cover more than reactive programming with plenty of guidance on Spring Boot or Spring Framework. In a forward-looking chapter, authors stimulate the readers' curiosity with some details about reactive communications using RSocket—a promising technology poised to deliver reactive benefits to the transport layer.
I hope you will take as much pleasure from reading this book as I did and keep learning new ways of writing applications.
Stéphane Maldini
Lead developer, Project Reactor
- CorelDRAW X6 中文版圖形設計實戰從入門到精通
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 智慧城市中的移動互聯網技術
- 面向物聯網的嵌入式系統開發:基于CC2530和STM32微處理器
- 區塊鏈輕松上手:原理、源碼、搭建與應用
- 城域網與廣域網(第2版)
- 物聯網與智能家居
- 互聯網安全的40個智慧洞見(2016)
- 算力網絡:云網融合2.0時代的網絡架構與關鍵技術
- 想象的互動:網絡人際傳播中的印象形成
- Migrating to Drupal7
- 路由與交換技術
- 5G新型多址技術
- 網絡分析技術揭秘:原理、實踐與WinPcap深入解析
- Hands-On Microservices:Monitoring and Testing