响应式
响应式编程(观察者模式)的核心是非阻塞的回调,以提高效率。
# RxJava
RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences.
It extends the observer pattern to support sequences of data/events and adds operators that allow you to compose sequences together declaratively while abstracting away concerns about things like low-level threading, synchronization, thread-safety and concurrent data structures.
RxJava是Java的响应式扩展:这个库使用可观察的序列整合了异步和基于事件编程。
同时,RxJava扩展了观察者模式以支持data/events。
# Reactor
Reactor is a fully non-blocking reactive programming foundation for the JVM。
It integrates directly with the Java 8 functional APIs,
Reactor是基于JVM的非阻塞响应式编程框架,它基于Java8的API。
# 参考
RxJava--官网--传送门 (opens new window)
Reactor--官网--传送门 (opens new window)
RxJava VS Reactor--传送门 (opens new window)