qmetrics.net

Netty

Event-driven Java framework for protocol servers and clients

Netty screenshot

Netty is an asynchronous, event-driven network stack for building maintainable high-performance protocol servers and clients in Java.

Overview

Netty targets developers who need custom protocol servers and clients without hand-rolling low-level socket code. It is built as an NIO client-server framework that simplifies TCP and UDP programming while aiming to keep throughput and stability.

The design offers one API for blocking and non-blocking transports, an extensible event model, and configurable threading from single-threaded runs to pooled executors. Datagram sockets are supported without persistent connections.

Documented qualities include documented Javadoc and examples, minimal mandatory dependencies beyond the JDK for core use, optional SSL/TLS and StartTLS, and attention to buffer copying costs. HTTP/2-related modules may impose extra JDK requirements.

Netty 4.x expects Java 8 or newer at runtime, with additional requirements for optional native transports such as io_uring on Java 9+. Applications embed Netty as a library inside their own JVM processes rather than as a standalone end-user program.

Key features

  • Unified blocking and non-blocking transports
  • Extensible event and pipeline model
  • Configurable thread and executor strategies
  • Connectionless UDP datagram support
  • SSL/TLS and StartTLS helpers
  • Protocol experience from FTP, SMTP, HTTP
  • Modular components for optional protocols
  • Java 8+ runtime with native transport options

Use cases

  • Custom TCP protocol servers
  • High-concurrency network clients
  • UDP-based gaming or telemetry services
  • TLS-terminated proxy or gateway layers
  • Embedding networking inside Java services

Similar software

Tokio

Rust runtime for reliable asynchronous network applications

Tokio is an event-driven, non-blocking I/O platform for asynchronous Rust programs. It supplies scheduling, timers, async TCP and UDP, and building blocks for network services.

★ 33.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

libuv

Cross-platform asynchronous I/O support library

libuv is a multi-platform library centered on non-blocking I/O. Node.js and several other runtimes embed it for networking and event handling.

★ 27.4k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Ws

Node.js WebSocket client and server library

The ws package implements WebSocket client and server roles for Node.js. It is not for browser runtimes; front ends should use the native WebSocket API or an isomorphic wrapper.

★ 22.8k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

WebRTC

Pure Go WebRTC stack for real-time media

Pion WebRTC implements the WebRTC API in Go without cgo, enabling peer connections, media, data channels, and ICE across servers, desktops, mobile, and WebAssembly targets.

★ 16.9k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Workflow

C++ async networking and parallel workflow engine

Sogou C++ Workflow is an enterprise-style C++ engine for HTTP servers, async clients, DAG workflows, and parallel compute used in Sogou’s online backends.

★ 14.4k⟳ 2 days agoApache-2.0

PeerJS

Browser WebRTC library for peer data and media connections

PeerJS wraps WebRTC with a simple JavaScript API for encrypted peer-to-peer data channels and video or audio calls between browsers.

★ 13.5k⟳ 1 year agoMIT
Frameworks & PlatformsDesktop/CLI app