E
E
ericcartman2018-10-08 22:32:11
tomcat
ericcartman, 2018-10-08 22:32:11

When to use Netty/Jetty and when not to bother and use Tomcat?

When to use Netty/Jetty and when not to bother and use Tomcat?
My personal assumptions: when we want to portray something asynchronous - we start to conjure with Netty (Jetty?) When else are they needed?
PS: (especially for the paranoid: of course I don't advertise any of these servers here, they're just popular so I'm asking)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-10-08
@ericcartman

First of all, you shouldn't put Jetty on a par with Netty. A completely different field of berries. Jetty is a web container. Netty is a framework for developing asynchronous applications. Jetty is used when a small and simple web container is needed. Often as an embedded web server. Netty is mainly for developing high performance servers. And not necessarily web servers.
If we compare Jetty and Tomcat, they are completely interchangeable. Typically, Jetty is used for standalone applications packaged in a single jar file. And Tomcat when you need to serve dozens of applications packaged in war files. But vice versa is also possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question