Need advice about which tool to choose?Ask the StackShare community!

Netty

260
388
+ 1
16
Apache Tomcat

15.4K
11.4K
+ 1
201
Add tool

Netty vs Apache Tomcat: What are the differences?

Developers describe Netty as "Asynchronous event-driven network application framework". Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. On the other hand, Apache Tomcat is detailed as "An open source software implementation of the Java Servlet and JavaServer Pages technologies". Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Netty belongs to "Concurrency Frameworks" category of the tech stack, while Apache Tomcat can be primarily classified under "Web Servers".

"High Performance" is the top reason why over 2 developers like Netty, while over 76 developers mention "Easy" as the leading cause for choosing Apache Tomcat.

Netty and Apache Tomcat are both open source tools. It seems that Netty with 19.9K GitHub stars and 9.05K forks on GitHub has more adoption than Apache Tomcat with 3.51K GitHub stars and 2.4K GitHub forks.

According to the StackShare community, Apache Tomcat has a broader approval, being mentioned in 566 company stacks & 432 developers stacks; compared to Netty, which is listed in 11 company stacks and 14 developer stacks.

Decisions about Netty and Apache Tomcat

I was in a situation where I have to configure 40 RHEL servers 20 each for Apache HTTP Server and Tomcat server. My task was to 1. configure LVM with required logical volumes, format and mount for HTTP and Tomcat servers accordingly. 2. Install apache and tomcat. 3. Generate and apply selfsigned certs to http server. 4. Modify default ports on Tomcat to different ports. 5. Create users on RHEL for application support team. 6. other administrative tasks like, start, stop and restart HTTP and Tomcat services.

I have utilized the power of ansible for all these tasks, which made it easy and manageable.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Netty
Pros of Apache Tomcat
  • 9
    High Performance
  • 4
    Easy to use
  • 3
    Just like it
  • 79
    Easy
  • 72
    Java
  • 49
    Popular
  • 1
    Spring web

Sign up to add or upvote prosMake informed product decisions

Cons of Netty
Cons of Apache Tomcat
  • 2
    Limited resources to learn from
  • 1
    Blocking - each http request block a thread

Sign up to add or upvote consMake informed product decisions

What is Netty?

Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.

What is Apache Tomcat?

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Netty?
What companies use Apache Tomcat?
See which teams inside your own company are using Netty or Apache Tomcat.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Netty?
What tools integrate with Apache Tomcat?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Netty and Apache Tomcat?
Jetty
Jetty is used in a wide variety of projects and products, both in development and production. Jetty can be easily embedded in devices, tools, frameworks, application servers, and clusters. See the Jetty Powered page for more uses of Jetty.
Mina
Mina works really fast because it's a deploy Bash script generator. It generates an entire procedure as a Bash script and runs it remotely in the server. Compare this to the likes of Vlad or Capistrano, where each command is run separately on their own SSH sessions. Mina only creates one SSH session per deploy, minimizing the SSH connection overhead.
Undertow
It is a flexible performant web server written in java, providing both blocking and non-blocking API’s based on NIO. It has a composition based architecture that allows you to build a web server by combining small single purpose handlers. The gives you the flexibility to choose between a full Java EE servlet 4.0 container, or a low level non-blocking handler, to anything in between.
Akka
Akka is a toolkit and runtime for building highly concurrent, distributed, and resilient message-driven applications on the JVM.
NGINX
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018.
See all alternatives