# Reactor

Reactor 是一种非阻塞式响应式编程框架。它可以直接与 Java8的函数式 API 集成到一起,尤其是CompletableFuture，Stream和Duration。它提供了可组合的异步 API，例如Flux 和Mon，并且广泛实现了Reactive Streams规范。

Reactor还支持与Reactor-Netty项目的非阻塞进程间通信。 适用于微服务架构，Reactor Netty为HTTP（包括Websockets），TCP和UDP提供了支持背压的网络引擎。 完全支持反应式编码和解码。

在这里提到了一个词 **背压(backpressure)** ，这在reactor 中是比较关键的一项内容，后面会详细介绍到。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.selinux.tech/reactive/reactor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
