官术网_书友最值得收藏!

Why should I learn RxJava?

 ReactiveX and RxJava paints a broad stroke against many problems programmers face daily, allowing you to express business logic and spend less time engineering code. Have you ever struggled with concurrency, event handling, obsolete data states, and exception recovery? What about making your code more maintainable, reusable, and evolvable so it can keep up with your business? It might be presumptuous to call reactive programming a silver bullet to these problems, but it certainly is a progressive leap in addressing them.

There is also growing user demand to make applications real time and responsive. Reactive programming allows you to quickly analyse and work with live data sources such as Twitter feeds or stock prices. It can also cancel and redirect work, scale with concurrency, and cope with rapidly emitting data. Composing events and data as streams that can be mixed, merged, filtered, split, and transformed opens up radically effective ways to compose and evolve code.

In summary, reactive programming makes many hard tasks easy, enabling you to add value in ways you might have thought impractical earlier. If you have a process written reactively and you discover that you need to run part of it on a different thread, you can implement this change in a matter of seconds. If you find network connectivity issues crashing your application intermittently, you can gracefully use reactive recovery strategies that wait and try again. If you need to inject an operation in the middle of your process, it is as simple as inserting a new operator. Reactive programming is broken up into modular chain links that can be added or removed, which can help overcome all the aforementioned problems quickly. In essence, RxJava allows applications to be tactical and evolvable while maintaining stability in production.

主站蜘蛛池模板: 喀喇沁旗| 株洲县| 西贡区| 溧水县| 建德市| 乐安县| 安吉县| 吉林市| 廊坊市| 庆城县| 漯河市| 南宫市| 西宁市| 嘉祥县| 巴林右旗| 巫溪县| 屏东市| 增城市| 七台河市| 托里县| 远安县| 普宁市| 河北区| 防城港市| 瑞安市| 襄城县| 宜宾县| 富蕴县| 海兴县| 庆元县| 江津市| 西丰县| 建德市| 巴林右旗| 南汇区| 肥西县| 平湖市| 昔阳县| 寿阳县| 贺兰县| 阳江市|