Back to services

Heroku

Salesforce-owned platform-as-a-service that runs apps in managed containers (dynos) with add-ons for databases and other services.

View alternatives to Heroku
Suggest edit
按使用量付费
proprietary
Web
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We couldn't retrieve the content of the official website this time, so the following was written based on existing knowledge of Heroku. Please check the official website for the latest details on pricing, plans, and so on.

Overview

Heroku is one of the earliest cloud platform-as-a-service (PaaS) offerings and is now owned by Salesforce. Its core idea is to let developers focus on writing code, while the platform handles operations work such as server configuration, operating system maintenance, load balancing, and scaling. Developers push their code to Heroku, and the platform automatically detects the language, builds the app, and runs it.

Key Features

  • Dyno container runtime: Apps run in lightweight Linux containers called Dynos. Dynos come in several sizes, and you can scale horizontally or vertically from the command line or the dashboard.
  • Automatic builds with Buildpacks: Official support covers Node.js, Ruby, Python, Java, PHP, Go, Scala, Clojure, and more, and you can also use community or custom Buildpacks. Deployment with Docker containers is supported as well.
  • Git push deployment: Run git push heroku main to deploy, or connect GitHub for automatic deploys.
  • Managed data services: Fully managed data services are available, including Heroku Postgres, Heroku Key-Value Store (Redis-compatible), and Apache Kafka on Heroku.
  • Add-ons marketplace: Connect third-party services for logging, monitoring, email, search, caching, and more with a single click.
  • Pipelines and Review Apps: Use pipelines to manage multiple environments such as development, staging, and production, and automatically generate a temporary preview app for each Pull Request. Heroku CI is also available for continuous integration.
  • Enterprise features: Private Spaces provide dedicated, network-isolated runtime environments, and Heroku Shield is aimed at use cases with compliance requirements.

Target Users and Use Cases

  • Individual developers and startup teams who want to launch MVPs and prototypes quickly
  • Small and mid-sized teams that don't want to invest in dedicated operations staff, using it to host web apps and APIs
  • Enterprise applications that need to integrate with the Salesforce ecosystem
  • Teaching, demos, and hackathon projects

Core Strengths

  • Great developer experience: Low barrier to entry, a simple deployment workflow, and thorough documentation.
  • No ops required: The platform takes care of system patches, runtime updates, routing, and load balancing.
  • Mature ecosystem: A rich add-on marketplace and plenty of community resources.
  • Easy scaling: Adjust the number and size of Dynos as needed.

How to Use

  1. Sign up for an account on the official website and install the Heroku CLI.
  2. In your project directory, run heroku login and heroku create to create an app.
  3. Run git push heroku main to deploy your code.
  4. Use commands such as heroku ps:scale web=1 to adjust running instances, and heroku addons:create to add services such as databases.

Things to Note

  • Heroku eliminated its free plan at the end of 2022, so it now requires payment. Entry-level options include low-cost Dyno plans such as Eco and Basic.
  • It is a closed-source, commercial managed service and cannot be self-hosted. For self-hosted options with a similar experience, take a look at Dokku, Coolify, CapRover, and others. Commercial alternatives include Render, Railway, Fly.io, and others.
  • Under high load, costs may be higher than using IaaS cloud servers directly.