loading image
Back to glossary

Heroku

Cloud platform (PaaS) enabling deployment, management, and scaling of web applications without managing underlying infrastructure.

Updated on January 24, 2026

Heroku is a Platform-as-a-Service (PaaS) cloud platform acquired by Salesforce in 2010. It enables developers to deploy and run applications in multiple languages (Ruby, Node.js, Python, Java, PHP, Go, Scala) without managing servers, network configuration, or system updates. Built on AWS infrastructure, Heroku abstracts infrastructure complexity to provide a simplified deployment experience through Git.

Technical Fundamentals

  • Containerized architecture based on 'dynos' (lightweight isolated Linux containers)
  • Buildpack system to automatically detect language and install dependencies
  • Add-ons marketplace to integrate databases, caching, monitoring, etc.
  • Deployment via Git push with automatic detection and application build

Strategic Benefits

  • Reduced time-to-market: deployment in minutes without infrastructure configuration
  • Simple horizontal and vertical scaling via interface or CLI
  • Automatic SSL/TLS certificate and custom domain management
  • Rich ecosystem of 200+ add-ons to extend functionality without custom development
  • Automatic review app environments for each pull request

Deployment Example

deploy-heroku.sh
# Install Heroku CLI
curl https://cli-assets.heroku.com/install.sh | sh

# Login to your account
heroku login

# Create a new application
heroku create my-production-app

# Add PostgreSQL database
heroku addons:create heroku-postgresql:mini

# Configure environment variables
heroku config:set NODE_ENV=production
heroku config:set API_KEY=your_secret_key

# Deploy from Git
git push heroku main

# Scale the application
heroku ps:scale web=2 worker=1

# View logs in real-time
heroku logs --tail

Heroku Application Architecture

Procfile
# Procfile - defines process types
web: npm start
worker: node worker.js
release: node db-migrate.js
app.json
{
  "name": "my-application",
  "description": "Node.js application on Heroku",
  "buildpacks": [
    {
      "url": "heroku/nodejs"
    }
  ],
  "formation": {
    "web": {
      "quantity": 1,
      "size": "basic"
    },
    "worker": {
      "quantity": 1,
      "size": "basic"
    }
  },
  "addons": [
    "heroku-postgresql:mini",
    "heroku-redis:mini",
    "papertrail:choklad"
  ],
  "env": {
    "NODE_ENV": "production",
    "NPM_CONFIG_PRODUCTION": "true"
  }
}

Implementing a CI/CD Pipeline

  1. Create a Heroku pipeline with staging and production environments
  2. Configure GitHub or GitLab to trigger automatic deployments
  3. Enable Review Apps to generate ephemeral environments per PR
  4. Define CI tests to run before promotion to production
  5. Configure metrics and alerts via monitoring add-ons
  6. Implement automatic backup strategy for critical data
  7. Document environment variables and secrets in a secure manager

Cost Optimization

With Heroku's free dynos discontinued in 2022, prefer Eco dynos ($5/month) for personal projects and Basic/Standard for production. Use automatic scaling to adjust resources based on actual traffic, and consolidate multiple small applications on shared dynos to optimize costs. For compute-intensive workloads, evaluate alternatives like Render, Railway, or Fly.io which offer more competitive pricing.

Essential Add-ons and Integrations

  • Heroku Postgres - Managed PostgreSQL database with automatic backups
  • Heroku Redis - In-memory cache and message queue
  • Papertrail / Logentries - Centralized log aggregation and search
  • New Relic / Scout APM - Application performance monitoring
  • Heroku Scheduler - Cron jobs without additional infrastructure
  • Cloudinary / AWS S3 - Media asset storage and transformation
  • SendGrid / Mailgun - Transactional email delivery

Enterprise Considerations

Heroku remains relevant for teams prioritizing development velocity and developer experience, particularly in Salesforce organizations where native integration provides value. The PaaS model eliminates DevOps operational overhead, allowing developers to focus on creating business value. However, above-market pricing and vendor lock-in require strategic evaluation against Kubernetes alternatives or cloud-native solutions for high-volume applications. The platform excels for MVPs, prototypes, and internal applications where time-to-market trumps infrastructure cost optimization.

Themoneyisalreadyonthetable.

In 1 hour, discover exactly how much you're losing and how to recover it.

Web development, automation & AI agency

contact@peaklab.fr
Newsletter

Get our tech and business tips delivered straight to your inbox.

Follow us

© PeakLab 2025