nginx vs Apache Tomcat

nginx
nginx

54K
12.5K
5.4K
Apache Tomcat
Apache Tomcat

4.6K
2.6K
195
Add tool

nginx vs Apache Tomcat: What are the differences?

Developers describe nginx as "A high performance free open source web server powering busiest sites on the Internet". 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. 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.

nginx and Apache Tomcat can be primarily classified as "Web Servers" tools.

"High-performance http server" is the primary reason why developers consider nginx over the competitors, whereas "Easy" was stated as the key factor in picking Apache Tomcat.

nginx and Apache Tomcat are both open source tools. It seems that nginx with 9K GitHub stars and 3.41K forks on GitHub has more adoption than Apache Tomcat with 3.44K GitHub stars and 2.36K GitHub forks.

Airbnb, Uber Technologies, and Spotify are some of the popular companies that use nginx, whereas Apache Tomcat is used by ebay, Intuit, and Evernote. nginx has a broader approval, being mentioned in 8631 company stacks & 2495 developers stacks; compared to Apache Tomcat, which is listed in 562 company stacks and 419 developer stacks.

What is 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.

What is Apache Tomcat?

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

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose nginx?
Why do developers choose Apache Tomcat?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using nginx?
What are the cons of using Apache Tomcat?
    Be the first to leave a con
      Be the first to leave a con
      What companies use nginx?
      What companies use Apache Tomcat?

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

      What tools integrate with nginx?
      What tools integrate with Apache Tomcat?

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

      What are some alternatives to nginx and Apache Tomcat?
      HAProxy
      HAProxy (High Availability Proxy) is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications.
      lighttpd
      lighttpd has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that suffers load problems.
      Traefik
      A modern HTTP reverse proxy and load balancer that makes deploying microservices easy. Traefik integrates with your existing infrastructure components and configures itself automatically and dynamically.
      Caddy
      Caddy is a production-ready open-source web server that is fast, easy to use, and makes you more productive. HTTP/2 and HTTPS by default
      Envoy
      Originally built at Lyft, Envoy is a high performance C++ distributed proxy designed for single services and applications, as well as a communication bus and “universal data plane” designed for large microservice “service mesh” architectures.
      See all alternatives
      Decisions about nginx and Apache Tomcat
      No stack decisions found
      Interest over time
      Reviews of nginx and Apache Tomcat
      No reviews found
      How developers use nginx and Apache Tomcat
      Avatar of MaxCDN
      MaxCDN uses nginxnginx

      The original API performed a synchronous Nginx reload after provisioning a zone, which often took up to 30 seconds or longer. While important, this step shouldn’t block the response to the user (or API) that a new zone has been created, or block subsequent requests to adjust the zone. With the new API, an independent worker reloads Nginx configurations based on zone modifications.It’s like ordering a product online: don’t pause the purchase process until the product’s been shipped. Say the order has been created, and you can still cancel or modify shipping information. Meanwhile, the remaining steps are being handled behind the scenes. In our case, the zone provision happens instantly, and you can see the result in your control panel or API. Behind the scenes, the zone will be serving traffic within a minute.

      Avatar of Cloudcraft
      Cloudcraft uses nginxnginx

      Nginx serves as the loadbalancer, router and SSL terminator of cloudcraft.co. As one of our app server nodes is spun up, an Ansible orchestration script adds the new node dynamically to the nginx loadbalancer config which is then reloaded for a zero downtime seamless rolling deployment. By putting nginx in front or whatever web and API servers you might have, you gain a ton of flexibility. While previously I've cobbled together HAProxy and Stun as a poor man's loadbalancer, nginx just does a much better job and is far simpler in the long run.

      Avatar of datapile
      datapile uses nginxnginx

      Used nginx as exactly what it is great for: serving static content in a cache-friendly, load balanced manner.

      It is exclusively for production web page hosting, we don't use nginx internally, only on the public-facing versions of static sites / Angular & Backbone/Marionette applications.

      Avatar of Pēteris Caune
      Pēteris Caune uses nginxnginx

      We use NGINX both as reverse HTTP proxy and also as a SMTP proxy, to handle incoming email.

      We previously handled incoming email with Mandrill, and then later with AWS SES. Handling incoming email yourself is not that much more difficult and saves quite a bit on operational costs.

      Avatar of Wirkn Inc.
      Wirkn Inc. uses nginxnginx

      NGINX sits in front of all of our web servers. It is fantastic at load balancing traffic as well as serving as a cache at times when under massive load. It's a robust tool that we're happy to have at the front lines of all Wirkn web apps.

      Avatar of Promethean TV
      Promethean TV uses Apache TomcatApache Tomcat

      Apache Tomcat is part of the open source Ant Media Server platform that currently provides both LIVE and VOD video trans-coding and delivery features for the Promethean Platform.

      Avatar of Kingsley Victor
      Kingsley Victor uses Apache TomcatApache Tomcat

      I use Tomcat to run Java enterprise web apps. Used to test enterprise applications mostly written using the Spring framework

      Avatar of Cian Ó Cuinneagáin
      Cian Ó Cuinneagáin uses Apache TomcatApache Tomcat

      Use this as the application server running on our production and development environment. Hosted on AWS.

      Avatar of The Independent
      The Independent uses Apache TomcatApache Tomcat

      Tomcat provides a fantastic application container that runs the majority of services of the site.

      Avatar of simpleshow GmbH
      simpleshow GmbH uses Apache TomcatApache Tomcat

      Apache Tomcat is being used as our application server for spring-based backend applications.

      How much does nginx cost?
      How much does Apache Tomcat cost?
      Pricing unavailable
      Pricing unavailable