Modelence vs Heroku: dynos, Postgres, regions and pricing

Updated November 2026

Heroku made the Procfile, buildpacks and push-to-deploy the standard way to ship a web app, and a lot of production software still runs on its dynos with Heroku Postgres attached. An app there is a set of process types, each running on dynos of the size you pick, with databases and other services added as add-ons.

Modelence keeps that shape. A web process, workers and their databases are declared together in one config file, and the app runs on AWS in any of 17 regions, with managed PostgreSQL, MongoDB and Redis in the same region. On Pro and up, the platform keeps operating the app after the deploy. Many teams are weighing the move now, since Heroku moved to a sustaining engineering model in February 2026 and the Heroku-22 stack reaches end of life on April 30, 2027, so a lot of apps need upgrade work either way. For the other places a Heroku app can go, see our Heroku alternatives comparison.

How your app runs

Heroku: Dynos for each process type

Each line in the Procfile is a process type, such as web or worker, and runs on dynos of the size you choose. A few platform rules shape how an app behaves:

  • The router ends any request that takes longer than 30 seconds, and the timeout can't be changed
  • A streaming response stays open only while a byte goes out at least every 55 seconds
  • Every dyno restarts at least once a day, about every 24 hours plus up to 216 minutes
  • Eco and Basic apps run one dyno per process type, and Eco dynos sleep after 30 minutes without traffic

Heroku recommends moving work that takes longer than 30 seconds, like a slow AI call or a large export, to a worker that the web process checks on.

Modelence: Containers that keep running

Modelence builds each service into a container, from your Dockerfile in any language or from build and start commands, and runs it on AWS Fargate across two availability zones. A web service, workers and a scheduler sit side by side in one config file, and each can run several containers.

  • A request that waits on a two-minute AI call finishes as one request, with no 30-second router limit
  • WebSockets and streaming responses stay open on the running process
  • Containers keep running between deploys, with no daily restart cycle
  • Containers come in sizes up to 4 vCPU and 16 GB of memory
  • A new version takes traffic only after it passes health checks, and a failing deploy is rolled back

Where it runs

Modelence: The AWS regions you can run your app in

Starter+Pro+

Americas

  • Oregonus-west-2
  • N. Californiaus-west-1
  • Ohious-east-2
  • N. Virginiaus-east-1
  • Montrealca-central-1
  • São Paulosa-east-1

Europe

  • Irelandeu-west-1
  • Londoneu-west-2
  • Pariseu-west-3
  • Frankfurteu-central-1
  • Stockholmeu-north-1

Asia Pacific

  • Mumbaiap-south-1
  • Singaporeap-southeast-1
  • Seoulap-northeast-2
  • Osakaap-northeast-3
  • Tokyoap-northeast-1
  • Sydneyap-southeast-2

Heroku: US or Europe, with more regions in Private Spaces

Apps on the Common Runtime run in one of two regions, the United States or Europe. Private Spaces add ten more, including Montreal, Mumbai, Sydney and Tokyo, and are available to verified Heroku Teams and Heroku Enterprise accounts. Heroku's newer Fir generation, built on Amazon EKS, also runs only in Private Spaces today.

Modelence: The app and its data in the region you choose

Your app, its databases and their backups run together in the AWS region you choose, so the app sits next to its data and the data stays where it has to. Starter includes Oregon, Montreal and Frankfurt, and Pro and up can use all 17 regions across the US, Canada, Europe, South America and Asia Pacific.

Pricing model

Heroku: A price for each dyno tier and add-on plan

Each dyno and add-on has a fixed monthly price, prorated to the second while it runs. The dyno tier decides features as well as size: Basic and Standard-1X both have 0.5 GB of memory, at $7 and $25 a month, and only Standard and up can run more than one dyno per process type or deploy with preboot. Autoscaling starts with Performance-M at $250 a month for 2.5 GB, and a highly available Heroku Postgres starts with Premium-0 at $200. Staging apps are billed the same way as production.

Modelence: One plan price with usage included

Your whole team shares one plan, and the plan price is included as cloud usage every month, so Starter costs $20 and covers $20 of usage. Usage is the containers and databases your apps run, billed by the hour based on their size, and rolling deploys, health checks and database backups don't depend on which size you pick. You pay only for usage above the plan price, and each plan's vCPU limit sets how far compute can grow.

See Modelence pricing

Deploying an app and its databases

Heroku: A Procfile, buildpacks and add-ons

A Heroku app deploys with a Git push or from GitHub, builds with a buildpack, and gets its databases and other services as add-ons, such as Heroku Postgres, Heroku Key-Value Store and third-party services from the Elements marketplace. Apps on the Heroku-22 stack need to move to a newer stack, since builds on it stop on May 1, 2027.

Modelence: One config file for services and databases

Your coding agent writes one config file that declares each service, its databases and the variables it needs, checks that every service builds, and runs the deploy. The first deploy creates PostgreSQL, MongoDB or Redis in the app's region and passes their connection strings to the app under the names it already reads, like DATABASE_URL and REDIS_URL. Every app has a production environment and sandbox environments for staging, each with its own variables and databases.

See how deploying from one config file works

Databases

Heroku: Heroku Postgres tiers

Heroku Postgres starts at $5 a month on the Essential tier, which has no rollback. Standard-0 costs $50 and is designed for apps that can tolerate up to an hour of downtime a month, without high availability, which starts with Premium-0 at $200. Databases still on Postgres 15 get forced upgrades from January 28, 2027. Heroku Key-Value Store starts at $3 for 25 MB, and other databases come from add-on providers.

Modelence: Managed databases in your app's region

PostgreSQL, MongoDB and Redis are created in the same region as your app, with Postgres plans from 1 GB to 16 GB of RAM. Production databases are backed up automatically at least every six hours with nothing to turn on, failover is handled for you, and the Modelence team restores a backup when you ask. Connection strings are in your app's variables, so you can take your own dump at any time.

See how managed databases work

After the deploy

Heroku shows metrics for each app in the dashboard and can alert you on Standard and Performance dynos, and logs are kept for longer with a logging add-on. On Pro and up, Modelence operates your app and its databases and handles problems at the platform level.

Fixed at the platform level

Crashed instances are replaced, traffic is rerouted and capacity is added under load, and then you get a report of what happened.

Code issues come to you

When the cause is in your code, like a memory leak or a slow query, Modelence traces it to where it starts and hands the finding to you to fix.

Summary

HerokuModelence
How the app runsDynos for each process type in the ProcfileContainers for each service in one config file, on AWS Fargate across two availability zones
Long requestsEnded by the router after 30 secondsNo 30-second router limit
RestartsEvery dyno at least once a dayContainers keep running between deploys
Scaling outStandard dynos and up, with autoscaling from PerformanceSeveral containers per service, with capacity added under load on Pro and up
Deploys without downtimePreboot on Standard and Performance dynosEvery deploy, with automatic rollback when health checks fail
RegionsUS or Europe, with ten more in Private Spaces17 AWS regions, with the app and its databases together
DatabasesHeroku Postgres and Key-Value Store add-ons, others from add-on providersManaged PostgreSQL, MongoDB and Redis in the same region as your app
Postgres high availabilityPremium tier and up, from $200 a monthFailover handled for you
Scheduled jobsHeroku Scheduler, every 10 minutes, hourly or dailyA scheduler service on any schedule you write
PricingA monthly price for each dyno and add-on, prorated to the secondOne plan price with the same amount included as usage
When something breaksMetrics and alerts for your team to act onFixed at the platform level, then reported to you (Pro and up)

Moving your app off Heroku

Your coding agent does most of the setup, and you step in to sign in, add secrets and copy the database.

  1. 1

    Give your coding agent the deploy prompt

    Open the project in your coding agent and paste the prompt below. The agent reads the Modelence deploy guide, works out how each process in your Procfile builds and starts, and goes through the next steps with you.

    Paste this into your coding agent

  2. 2

    The agent turns the Procfile into the config file

    Each process type becomes a service, with web first and workers next to it, and Heroku Postgres and Key-Value Store become managed databases in the same file. If the app built with a buildpack, the agent writes a Dockerfile for it and checks that every service builds and starts locally.

  3. 3

    Deploy and add your config vars

    The agent runs the deploy, and your browser opens so you can sign in, pick the app and environment, and fill in the values it asks for. You can copy them from heroku config, and skip DATABASE_URL and REDIS_URL, since the new databases come with their own.

  4. 4

    Copy the database and move your domain

    Put the Heroku app in maintenance mode, capture a Heroku Postgres backup and restore it into the new database with pg_restore. Once the app works on its Modelence URL, point your domain at it in place of the herokudns.com record.

Read the full Heroku migration guide

If you would rather run AWS yourself, the guide to moving from Heroku to AWS covers ECS, RDS and the other services it takes.

Frequently asked questions

Is Modelence a good Heroku alternative?

For teams that like the way Heroku works, yes. An app on Modelence is still a set of processes, variables and attached databases, declared in one config file instead of a Procfile and add-ons, and it runs on AWS in the region you choose with managed PostgreSQL, MongoDB and Redis next to it. On Pro and up, the platform also operates the app after the deploy, so problems are handled without someone on your team watching dashboards.

Does Modelence run on AWS like Heroku?

Yes. Every app runs on AWS Fargate across two availability zones, in the region you pick on the first deploy, and its databases are created in the same region. You can choose from 17 AWS regions across the Americas, Europe and Asia Pacific. Heroku's newer Fir generation is built on Amazon EKS, but Heroku apps pick from Heroku's own regions: the US or Europe on the Common Runtime, and ten more in Private Spaces.

What happens to my Procfile and worker dynos?

Each process type becomes a service in modelence.config.json, so web and worker deploy together and read the same database and Redis variables. You set how many containers each one runs in the dashboard, the same way you scaled dynos. The release command, usually database migrations, runs before each deploy from your machine or your CI.

Can a request run longer than 30 seconds?

Yes. There is no 30-second router limit on Modelence, so a request that waits on a slow AI call or builds a large export can finish as one request. WebSockets and streaming responses stay open on the running process, and your containers keep running between deploys without a daily restart.

How does the cost compare?

Heroku charges a fixed monthly price for each dyno and each add-on plan, prorated to the second, and the dyno tier decides features like horizontal scaling, preboot and autoscaling. Modelence bills each container and database by the hour based on its size, and each paid plan includes its price as usage, so the bill stays at the plan price unless your apps run more than it covers. Modelence Starter is $20 a month with $20 of usage included.

How do I replace Heroku Scheduler?

Add a small scheduler service that runs your jobs on a timer, with a library such as whenever, rufus-scheduler, Celery beat or node-cron, and keep it on one container so each job runs once. Since you write the schedule yourself, a job can run at 2:15 every night or every five minutes.

Can Claude Code or Cursor move my app from Heroku?

Yes. Open the project in Claude Code, Cursor, Codex or another coding agent and paste the prompt from the steps above. The agent reads the Modelence deploy instructions, turns your Procfile into the config file, writes a Dockerfile if the app used a buildpack, and asks you for the secrets. Copying the database and switching the domain follow the migration guide.

Are my databases backed up?

Yes. Production databases are backed up automatically at least every six hours, with nothing to turn on, and the Modelence team restores a backup for you when you ask. Their connection strings are in your app’s variables, so you can also take your own dump with the standard tools at any time.

Run your Heroku app on Modelence

You can start on the Free plan and keep Heroku running until you switch the domain.

Or paste this into your coding agent