This article introduces you to securing Netty applications using Elytron security framework, which is a core component of WildFly application server.
Netty is an advanced framework for creating high-performance networking applications. Here are the highlights about this framework:
- Unified API for multiple transport types, both blocking and non-blocking.
- Simple but powerful threading model.
- Chaining of logic components to support reuse.
- Ease of use Extensive Javadoc and large example set.
- No required additional dependencies
- Better throughput and lower latency than core Java APIs.
- Reduced resource consumption thanks to pooling and reuse.
- Complete SSL/TLS and StartTLS support.
- Community-driven Release early and often.
<dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.72.Final</version> </dependency>
Getting started with Netty
Netty is a client/server framework that provides a simplified layer over NIO networking. This makes it a good candidate to create low-level nonblocking network applications.
How to create an HTTP Server with Netty
Netty is a framework which you can add to your developer’s stack to create event based non blocking applications. You can easily adapt it to handle a variety of Protocols. In this tutorial we will show how to create and run a simple HTTP Server with Netty.
Netty vs Tomcat explained
This question often arises in forums so let’s discuss here what is the difference between Netty framework and Tomcat Web server.
Use Netty to Proxy your requests
In this tutorial we will learn how to use Netty to set up a simple HTTP reverse proxy. We recommend checking this tutorial for an overview of Netty core concepts: Getting started with Netty