Build asynchronous, event-based, and concurrent applications with Java and ReactiveX
Key FeaturesExplore the essential tools and operators in RxJava and understand when to use themBuild scalable and high performing reactive applications with Observables and Subscribers Implement tools to perform complex tasks such as concurrency and backpressure effectivelyBook DescriptionRxJava is a library for composing asynchronous and event-based programs using Observable sequences for the Java virtual machine (JVM), allowing developers to build robust applications in less time. Learning RxJava covers the fundamentals of reactive programming to help you write reactive code, and introduces you to an effective approach to designing and implementing reactive libraries and applications.
Starting with a brief introduction to reactive programming concepts, you’ll get an overview of Observables and Observers, the core components of RxJava, and how to combine different streams of data and events. You’ll also learn simpler ways to achieve concurrency and maintain high performance without the need for synchronization. As you advance, you’ll be able to implement the backpressure strategy to cope with rapidly producing sources to prevent bottlenecks in your application. Finally, the book delves into custom operators, testing, and debugging, and then moves on to practical examples of using RxJava on Android as well as Kotlin.
By the end of the book, you’ll be able to confidently build asynchronous and responsive applications using RxJava.
What you will learnExplore RxJava’s reactive types such as Flowable, Single, Maybe, and CompletableDemystify Observables and how they express data and events as sequencesExplore Rx operators that transform, filter, and combine data and event sequencesUse multicasting to push data to multiple destinations and cache and replay themDiscover how concurrency and parallelization work in RxJava and implement complex tasks easilyBuild reactive Android applications using RxJava with KotlinWho this book is forIf you’re a Java developer who wants to learn reactive programming and its benefits, this book is for you. You’ll also find this book useful if you want to use RxJava to make your programs more resilient, concurrent, and scalable.
Table of ContentsThinking ReactivelyObservables and SubscribersBasic OperatorsCombining ObservablesMulticasting, Replaying, and CachingConcurrency and ParallelizationSwitching, Throttling, Windowing, and BufferingFlowables and BackpressureTransformers and Custom OperatorsTesting and DebuggingRxJava on AndroidUsing RxJava for Kotlin New
Solidna a kompaktna ucebnica reaktivneho programovania v Jave (a Kotline). Napriek zopar vyhradam davam 5/5.
Obcas mi kniha pripominala skor API dokumentaciu a chybali mi trochu specifickejsie nazorne ukazky, vsetko to bolo na mna trochu prilis teoreticke. Ale autor to trochu vynahradza v prilohe.
Text bol trochu zbytocne roztahany. V kazdej kapitole je najskor napisane co sa ide preberat, potom je samotne "ucivo" a na konci v summary to vsetko znova zopakuje. Naco? Uplne zbytocny text.
Najviac som sa tesil na kapitolu o Androide. O to vacsie bolo sklamanie, ked okrem zopar ukazok na urovni Hello World tam nebolo nic a kapitola sama bola obsahovo najmensia zo vsetkych. Autorova poznamka na zaciatku kapitoly o tom, ze od citatela sa ocakava aspon zakladne vzdelanie z Androidu este aj s odkazom na odporucanu literaturu je imho zbytocna, pretoze kazdy priemerny Java programator tu kapitolu pochopi aj keby ani netusil co to je Android. Kapitola Using RxJava for Kotlin bola nastastie ovela lepsia a zachranila moj dojem z knihy.
Autor deklaruje, ze sa pri pisani inspiroval knihou Java Effective od Joshua Bloch. To je citit podla formy textu, ale nedosahuje az taku vysoku kvalitu ako tento uz spomenuty svaty gral Java programatorov. K tomu mi tam chyba trochu viac "deep under the hood insight"-ov a trochu strucnejsi, ale zato udernejsi text. Napriek tomu to je velmi poucne citanie a zmenilo to moj programatorsky pohlad na svet. Na ziadne data sa uz nebudem pozerat tak ako predtym.
I really enjoyed reading this book about reactive programming in java. The book was scattered with a lot of simple to grasp examples to cement the reactive principles foundation. I found it covers approaches for a lot of real-world cases, such as backpressure, combining observable, concurrency and parallelization and even how to debug a reactive based application with rx-java. I also enjoyed the fact the kotlin made its entrance in this book as a companion for further simplification. For me it is the best way to start this interesting journey of reactive programming.
I started reading it after finishing 'Reactive Programming with RxJava: Creating Asynchronous, Event-Based Applications by Tomasz Nurkiewicz, Ben Christensen'.
Very similar to before-mentioned title. Not really worth reading both, choose one. This book seems to be targeted to more beginner developer (more simple examples). Also it has more about Kotlin and Android. Finally it targets RxJava2, where ''Reactive Programming.. ' is about rxJava1, with short chapter with differences (differences are actually very little).
As a positive side I would say the chapters are short and well grouped and it is reasonably easy to read. But the author seems to lack knowledge on OO approach and keeps attacking it with poor comparisons to pend to his beloved reactive approach. Examples are very verbose and hard to read, especially if you have a narrow screen (like I do), some of the examples you might need to just skip altogether. I would not recommend this book if you are looking to find the real values to use reactive programming. But it can be useful to have some introduction to RxJava if you ignore the details.