Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Netty Performance

linux_china edited this page Mar 22, 2021 · 3 revisions

Netty performance with io_uring

  • io_uring在网络编程方面的优化更适合长连接场景,在长连接场景下最高有20%多的提升,我们都知道RSocket是长连接的,这样更有优势。

Dependencies

请确保netty-incubator-transport-native-io_uring使用的Netty版本和应用引用的Netty版本一致。

<dependencies>
  <!--  <dependency>
          <groupId>io.netty</groupId>
          <artifactId>netty-all</artifactId>
          <version>4.1.59.Final</version>
    </dependency>-->
    <dependency>
       <groupId>io.netty.incubator</groupId>
       <artifactId>netty-incubator-transport-native-io_uring</artifactId>
       <version>0.0.4.Final</version>
       <classifier>linux-x86_64</classifier>
    </dependency>
</dependencies>

References

RSocket

Network Protocol

  • Binary: byte stream
  • Async message
  • Multi transports
  • Reactive Semantics

Symmetric interactions

  • request/response
  • request/stream
  • fire-and-forget
  • channel

Transports

  • TCP+TLS
  • WebSocket+TLS
  • UDP(Aeron)
  • RDMA

Polyglot

Clone this wiki locally