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

Heroku

25.5K
20.3K
+ 1
3.2K
NGINX

113.1K
60.7K
+ 1
5.5K
Add tool

Heroku vs nginx: What are the differences?

Key differences between Heroku and nginx

1. Deployment process:

Heroku provides a platform-as-a-service (PaaS) solution where developers can deploy and manage applications without worrying about server configurations. It supports a simple git-based deployment process, allowing developers to easily deploy their code with a single command. On the other hand, nginx is a web server software that needs to be installed and configured on a server manually, making the deployment process more complex and time-consuming.

2. Scalability and load balancing:

Heroku automatically handles scalability and load balancing by providing dynos, which are isolated containers that can run a single process. Scaling up or down in Heroku is as easy as adjusting the number of dynos. In contrast, nginx does not provide built-in scalability features and load balancing needs to be manually configured using third-party tools or modules.

3. Environment configuration:

Heroku allows developers to easily configure environment variables for their applications through its web interface or command-line interface (CLI). This makes it convenient to manage sensitive information such as API keys or database credentials. On the other hand, nginx requires manual configuration of environment variables in its configuration files, which can be more cumbersome and error-prone.

4. Application monitoring and logging:

Heroku provides built-in monitoring and logging features, allowing developers to easily track the performance and behavior of their applications. It provides a web-based dashboard where developers can view real-time metrics, logs, and other diagnostic information about their applications. In contrast, nginx does not have built-in monitoring and logging capabilities, requiring developers to rely on third-party tools or configure them manually.

5. Integration with other services:

Heroku supports seamless integration with various services such as databases, storage providers, email services, and more. It provides add-ons that can be easily added to an application to extend its functionality. On the other hand, nginx is primarily a web server and does not have built-in support for integrating with other services. Any integration needs to be manually configured using external modules or custom scripting.

6. Pricing model:

Heroku offers a flexible pricing model based on the resources used by applications, allowing developers to pay for what they need. It provides a free tier for testing and small-scale applications, as well as various paid tiers for more demanding applications. Nginx, on the other hand, is open-source software and can be used for free without any licensing fees. However, the cost of running nginx on a server and managing its resources needs to be considered separately.

In summary, Heroku provides a user-friendly platform for deploying and managing applications with built-in scalability, monitoring, and integration capabilities, while nginx is a powerful web server software that requires manual configuration and lacks some of the advanced features provided by Heroku.

Advice on Heroku and NGINX

I am diving into web development, both front and back end. I feel comfortable with administration, scripting and moderate coding in bash, Python and C++, but I am also a Windows fan (i love inner conflict). What are the votes on web servers? IIS is expensive and restrictive (has Windows adoption of open source changed this?) Apache has the history but seems to be at the root of most of my Infosec issues, and I know nothing about nginx (is it too new to rely on?). And no, I don't know what I want to do on the web explicitly, but hosting and data storage (both cloud and tape) are possibilities. Ready, aim fire!

See more
Replies (1)
Simon Aronsson
Developer Advocate at k6 / Load Impact · | 4 upvotes · 709.4K views
Recommends
on
NGINXNGINX

I would pick nginx over both IIS and Apace HTTP Server any day. Combine it with docker, and as you grow maybe even traefik, and you'll have a really flexible solution for serving http content where you can take sites and projects up and down without effort, easily move it between systems and dont have to handle any dependencies on your actual local machine.

See more
Needs advice
on
Apache HTTP ServerApache HTTP Server
and
NGINXNGINX

From a StackShare Community member: "We are a LAMP shop currently focused on improving web performance for our customers. We have made many front-end optimizations and now we are considering replacing Apache with nginx. I was wondering if others saw a noticeable performance gain or any other benefits by switching."

See more
Replies (3)
Recommends
on
NGINXNGINX

I use nginx because it is very light weight. Where Apache tries to include everything in the web server, nginx opts to have external programs/facilities take care of that so the web server can focus on efficiently serving web pages. While this can seem inefficient, it limits the number of new bugs found in the web server, which is the element that faces the client most directly.

See more
Leandro Barral
Recommends
on
NGINXNGINX

I use nginx because its more flexible and easy to configure

See more
Christian Cwienk
Software Developer at SAP · | 1 upvotes · 676K views
Recommends
on
Apache HTTP ServerApache HTTP Server

I use Apache HTTP Server because it's intuitive, comprehensive, well-documented, and just works

See more
Decisions about Heroku and NGINX
Grant Steuart
  • Server rendered HTML output from PHP is being migrated to the client as Vue.js components, future plans to provide additional content, and other new miscellaneous features all result in a substantial increase of static files needing to be served from the server. NGINX has better performance than Apache for serving static content.
  • The change to NGINX will require switching from PHP to PHP-FPM resulting in a distributed architecture with a higher complexity configuration, but this is outweighed by PHP-FPM being faster than PHP for processing requests.
  • The NGINX + PHP-FPM setup now allows for horizontally scaling of resources rather vertically scaling the previously combined Apache + PHP resources.
  • PHP shell tasks can now efficiently be decoupled from the application reducing main application footprint and allow for scaling of tasks on an individual basis.
See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Heroku
Pros of NGINX
  • 703
    Easy deployment
  • 459
    Free for side projects
  • 374
    Huge time-saver
  • 348
    Simple scaling
  • 261
    Low devops skills required
  • 190
    Easy setup
  • 174
    Add-ons for almost everything
  • 153
    Beginner friendly
  • 150
    Better for startups
  • 133
    Low learning curve
  • 48
    Postgres hosting
  • 41
    Easy to add collaborators
  • 30
    Faster development
  • 24
    Awesome documentation
  • 19
    Simple rollback
  • 19
    Focus on product, not deployment
  • 15
    Natural companion for rails development
  • 15
    Easy integration
  • 12
    Great customer support
  • 8
    GitHub integration
  • 6
    Painless & well documented
  • 6
    No-ops
  • 4
    I love that they make it free to launch a side project
  • 4
    Free
  • 3
    Great UI
  • 3
    Just works
  • 2
    PostgreSQL forking and following
  • 2
    MySQL extension
  • 1
    Security
  • 1
    Able to host stuff good like Discord Bot
  • 0
    Sec
  • 1.4K
    High-performance http server
  • 894
    Performance
  • 730
    Easy to configure
  • 607
    Open source
  • 530
    Load balancer
  • 289
    Free
  • 288
    Scalability
  • 226
    Web server
  • 175
    Simplicity
  • 136
    Easy setup
  • 30
    Content caching
  • 21
    Web Accelerator
  • 15
    Capability
  • 14
    Fast
  • 12
    High-latency
  • 12
    Predictability
  • 8
    Reverse Proxy
  • 7
    The best of them
  • 7
    Supports http/2
  • 5
    Great Community
  • 5
    Lots of Modules
  • 5
    Enterprise version
  • 4
    High perfomance proxy server
  • 3
    Embedded Lua scripting
  • 3
    Streaming media delivery
  • 3
    Streaming media
  • 3
    Reversy Proxy
  • 2
    Blash
  • 2
    GRPC-Web
  • 2
    Lightweight
  • 2
    Fast and easy to set up
  • 2
    Slim
  • 2
    saltstack
  • 1
    Virtual hosting
  • 1
    Narrow focus. Easy to configure. Fast
  • 1
    Along with Redis Cache its the Most superior
  • 1
    Ingress controller

Sign up to add or upvote prosMake informed product decisions

Cons of Heroku
Cons of NGINX
  • 27
    Super expensive
  • 9
    Not a whole lot of flexibility
  • 7
    No usable MySQL option
  • 7
    Storage
  • 5
    Low performance on free tier
  • 2
    24/7 support is $1,000 per month
  • 10
    Advanced features require subscription

Sign up to add or upvote consMake informed product decisions

What companies use Heroku?
What companies use NGINX?
Manage your open source components, licenses, and vulnerabilities
Learn More

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

What tools integrate with Heroku?
What tools integrate with NGINX?

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

What are some alternatives to Heroku and NGINX?
DigitalOcean
We take the complexities out of cloud hosting by offering blazing fast, on-demand SSD cloud servers, straightforward pricing, a simple API, and an easy-to-use control panel.
Google App Engine
Google has a reputation for highly reliable, high performance infrastructure. With App Engine you can take advantage of the 10 years of knowledge Google has in running massively scalable, performance driven systems. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow.
Firebase
Firebase is a cloud service designed to power real-time, collaborative applications. Simply add the Firebase library to your application to gain access to a shared data structure; any changes you make to that data are automatically synchronized with the Firebase cloud and with other clients within milliseconds.
Docker
The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
Microsoft Azure
Azure is an open and flexible cloud platform that enables you to quickly build, deploy and manage applications across a global network of Microsoft-managed datacenters. You can build applications using any language, tool or framework. And you can integrate your public cloud applications with your existing IT environment.
See all alternatives