Kora фреймворк для написания Java / Kotlin приложений с упором на производительность, эффективность, прозрачность сделанный разработчиками Т-Банк / Тинькофф

Kora is a framework for writing Java / Kotlin applications with a focus on performance, efficiency, transparency made by T-Bank / Tinkoff developers

Skip to content

Netty

Functionality customizing Netty components used by other modules like Vertx, HTTP Async client, gRPC client, gRPC server.

Module itself does not provide any utility on its own, but only serves to configure Netty transport and Netty event loop within Kora.

Connection

The module will be transitively provided to dependencies that use it.

Configuration

An example of the configuration described in the NettyTransportConfig class:

netty {
    transport = "NIO" //(1)!
    threads = 2 //(2)!
}
  1. Preferred trasnport if available on the path as a dependency, is selected by default in order of availability:
    1. Epoll (require dependency)
    2. KQueue (require dependency)
    3. Nio
  2. Number of threads Netty event loop, defaults to the number of CPU cores multiplied by 2.
netty:
  transport: "NIO" #(1)!
  threads: 2 #(2)!
  1. Preferred trasnport if available on the path as a dependency, is selected by default in order of availability:
    1. Epoll (require dependency)
    2. KQueue (require dependency)
    3. Nio
  2. Number of threads Netty event loop, defaults to the number of CPU cores multiplied by 2.