Alternatives to Heroku Postgres logo

Alternatives to Heroku Postgres

MongoDB, ClearDB, Heroku, Google Cloud SQL, and Heroku Redis are the most popular alternatives and competitors to Heroku Postgres.
490
313
+ 1
38

What is Heroku Postgres and what are its top alternatives?

Heroku Postgres provides a SQL database-as-a-service that lets you focus on building your application instead of messing around with database management.
Heroku Postgres is a tool in the PostgreSQL as a Service category of a tech stack.

Top Alternatives to Heroku Postgres

  • MongoDB
    MongoDB

    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding. ...

  • ClearDB
    ClearDB

    ClearDB uses a combination of advanced replication techniques, advanced cluster technology, and layered web services to provide you with a MySQL database that is "smarter" than usual. ...

  • Heroku
    Heroku

    Heroku is a cloud application platform – a new way of building and deploying web apps. Heroku lets app developers spend 100% of their time on their application code, not managing servers, deployment, ongoing operations, or scaling. ...

  • Google Cloud SQL
    Google Cloud SQL

    Run the same relational databases you know with their rich extension collections, configuration flags and developer ecosystem, but without the hassle of self management. ...

  • Heroku Redis
    Heroku Redis

    Heroku Redis is an in-memory key-value data store, run by Heroku, that is provisioned and managed as an add-on. Heroku Redis is accessible from any language with a Redis driver, including all languages and frameworks supported by Heroku. ...

  • MySQL
    MySQL

    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. ...

  • Amazon RDS for PostgreSQL
    Amazon RDS for PostgreSQL

    Amazon RDS manages complex and time-consuming administrative tasks such as PostgreSQL software installation and upgrades, storage management, replication for high availability and back-ups for disaster recovery. With just a few clicks in the AWS Management Console, you can deploy a PostgreSQL database with automatically configured database parameters for optimal performance. Amazon RDS for PostgreSQL database instances can be provisioned with either standard storage or Provisioned IOPS storage. Once provisioned, you can scale from 10GB to 3TB of storage and from 1,000 IOPS to 30,000 IOPS. ...

  • Google Cloud SQL for PostgreSQL
    Google Cloud SQL for PostgreSQL

    With Cloud SQL for PostgreSQL, you can spend less time on your database operations and more time on your applications. ...

Heroku Postgres alternatives & related posts

MongoDB logo

MongoDB

91.5K
79K
4.1K
The database for giant ideas
91.5K
79K
+ 1
4.1K
PROS OF MONGODB
  • 827
    Document-oriented storage
  • 593
    No sql
  • 553
    Ease of use
  • 464
    Fast
  • 410
    High performance
  • 257
    Free
  • 218
    Open source
  • 180
    Flexible
  • 145
    Replication & high availability
  • 112
    Easy to maintain
  • 42
    Querying
  • 39
    Easy scalability
  • 38
    Auto-sharding
  • 37
    High availability
  • 31
    Map/reduce
  • 27
    Document database
  • 25
    Easy setup
  • 25
    Full index support
  • 16
    Reliable
  • 15
    Fast in-place updates
  • 14
    Agile programming, flexible, fast
  • 12
    No database migrations
  • 8
    Easy integration with Node.Js
  • 8
    Enterprise
  • 6
    Enterprise Support
  • 5
    Great NoSQL DB
  • 4
    Support for many languages through different drivers
  • 3
    Drivers support is good
  • 3
    Aggregation Framework
  • 3
    Schemaless
  • 2
    Fast
  • 2
    Managed service
  • 2
    Easy to Scale
  • 2
    Awesome
  • 2
    Consistent
  • 1
    Good GUI
  • 1
    Acid Compliant
CONS OF MONGODB
  • 6
    Very slowly for connected models that require joins
  • 3
    Not acid compliant
  • 1
    Proprietary query language

related MongoDB posts

Jeyabalaji Subramanian

Recently we were looking at a few robust and cost-effective ways of replicating the data that resides in our production MongoDB to a PostgreSQL database for data warehousing and business intelligence.

We set ourselves the following criteria for the optimal tool that would do this job: - The data replication must be near real-time, yet it should NOT impact the production database - The data replication must be horizontally scalable (based on the load), asynchronous & crash-resilient

Based on the above criteria, we selected the following tools to perform the end to end data replication:

We chose MongoDB Stitch for picking up the changes in the source database. It is the serverless platform from MongoDB. One of the services offered by MongoDB Stitch is Stitch Triggers. Using stitch triggers, you can execute a serverless function (in Node.js) in real time in response to changes in the database. When there are a lot of database changes, Stitch automatically "feeds forward" these changes through an asynchronous queue.

We chose Amazon SQS as the pipe / message backbone for communicating the changes from MongoDB to our own replication service. Interestingly enough, MongoDB stitch offers integration with AWS services.

In the Node.js function, we wrote minimal functionality to communicate the database changes (insert / update / delete / replace) to Amazon SQS.

Next we wrote a minimal micro-service in Python to listen to the message events on SQS, pickup the data payload & mirror the DB changes on to the target Data warehouse. We implemented source data to target data translation by modelling target table structures through SQLAlchemy . We deployed this micro-service as AWS Lambda with Zappa. With Zappa, deploying your services as event-driven & horizontally scalable Lambda service is dumb-easy.

In the end, we got to implement a highly scalable near realtime Change Data Replication service that "works" and deployed to production in a matter of few days!

See more
Robert Zuber

We use MongoDB as our primary #datastore. Mongo's approach to replica sets enables some fantastic patterns for operations like maintenance, backups, and #ETL.

As we pull #microservices from our #monolith, we are taking the opportunity to build them with their own datastores using PostgreSQL. We also use Redis to cache data we’d never store permanently, and to rate-limit our requests to partners’ APIs (like GitHub).

When we’re dealing with large blobs of immutable data (logs, artifacts, and test results), we store them in Amazon S3. We handle any side-effects of S3’s eventual consistency model within our own code. This ensures that we deal with user requests correctly while writes are in process.

See more
ClearDB logo

ClearDB

27
83
28
Fault tolerant database-as-a-service in the cloud for your MySQL powered applications.
27
83
+ 1
28
PROS OF CLEARDB
  • 7
    Cloud SQL
  • 6
    Heroku
  • 4
    Fast
  • 3
    Great Backup
  • 3
    Easy to use
  • 2
    Scalability
  • 1
    Great Support
  • 1
    Geographic redundancy
  • 1
    Master / master replication
CONS OF CLEARDB
    Be the first to leave a con

    related ClearDB posts

    Hi, I'm a beginner at using MySQL, I currently deployed my crud app on Heroku using the ClearDB add-on. I didn't see that coming, but the increased value of the primary key instead of being 1 is set to 10, and I cannot find a way to change it. Now I`m considering switching and deploying the full app and MySql to DigitalOcean any advice on that? Will I get the same issue? Thanks in advance!

    See more
    Sujith Kattathara Bhaskaran

    Heroku is unable to handle payment issues arising due to Indian Reserve Bank's decision to stop recurring card payments. I am using the following Heroku services:

    1. Web Dyno
    2. Worker Dyno (Scheduler)
    3. Cron To Go (Queue)
    4. ClearDB (MySQL)
    5. Heroku Redis (Queue Driver)

    I have to migrate my Apache/ PHP/ Laravel/ HTML/ CSS/ jQuery/ MySQL application hosted on Heroku to a new provider. My current options visible are:

    1. AWS Fargate
    2. AWS Beanstalk
    3. Quovery
    4. Microsoft Azure
    5. Laravel Vapor
    6. Laravel Forge

    Does anyone have any guidance on which of the above options (or any other option not identified above) is recommended for migrating away from Heroku? and why?

    See more
    Heroku logo

    Heroku

    25.3K
    20.2K
    3.2K
    Build, deliver, monitor and scale web apps and APIs with a trail blazing developer experience.
    25.3K
    20.2K
    + 1
    3.2K
    PROS OF HEROKU
    • 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
    CONS OF HEROKU
    • 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

    related Heroku posts

    Russel Werner
    Lead Engineer at StackShare · | 32 upvotes · 1.9M views

    StackShare Feed is built entirely with React, Glamorous, and Apollo. One of our objectives with the public launch of the Feed was to enable a Server-side rendered (SSR) experience for our organic search traffic. When you visit the StackShare Feed, and you aren't logged in, you are delivered the Trending feed experience. We use an in-house Node.js rendering microservice to generate this HTML. This microservice needs to run and serve requests independent of our Rails web app. Up until recently, we had a mono-repo with our Rails and React code living happily together and all served from the same web process. In order to deploy our SSR app into a Heroku environment, we needed to split out our front-end application into a separate repo in GitHub. The driving factor in this decision was mostly due to limitations imposed by Heroku specifically with how processes can't communicate with each other. A new SSR app was created in Heroku and linked directly to the frontend repo so it stays in-sync with changes.

    Related to this, we need a way to "deploy" our frontend changes to various server environments without building & releasing the entire Ruby application. We built a hybrid Amazon S3 Amazon CloudFront solution to host our Webpack bundles. A new CircleCI script builds the bundles and uploads them to S3. The final step in our rollout is to update some keys in Redis so our Rails app knows which bundles to serve. The result of these efforts were significant. Our frontend team now moves independently of our backend team, our build & release process takes only a few minutes, we are now using an edge CDN to serve JS assets, and we have pre-rendered React pages!

    #StackDecisionsLaunch #SSR #Microservices #FrontEndRepoSplit

    See more
    Simon Reymann
    Senior Fullstack Developer at QUANTUSflow Software GmbH · | 30 upvotes · 9M views

    Our whole DevOps stack consists of the following tools:

    • GitHub (incl. GitHub Pages/Markdown for Documentation, GettingStarted and HowTo's) for collaborative review and code management tool
    • Respectively Git as revision control system
    • SourceTree as Git GUI
    • Visual Studio Code as IDE
    • CircleCI for continuous integration (automatize development process)
    • Prettier / TSLint / ESLint as code linter
    • SonarQube as quality gate
    • Docker as container management (incl. Docker Compose for multi-container application management)
    • VirtualBox for operating system simulation tests
    • Kubernetes as cluster management for docker containers
    • Heroku for deploying in test environments
    • nginx as web server (preferably used as facade server in production environment)
    • SSLMate (using OpenSSL) for certificate management
    • Amazon EC2 (incl. Amazon S3) for deploying in stage (production-like) and production environments
    • PostgreSQL as preferred database system
    • Redis as preferred in-memory database/store (great for caching)

    The main reason we have chosen Kubernetes over Docker Swarm is related to the following artifacts:

    • Key features: Easy and flexible installation, Clear dashboard, Great scaling operations, Monitoring is an integral part, Great load balancing concepts, Monitors the condition and ensures compensation in the event of failure.
    • Applications: An application can be deployed using a combination of pods, deployments, and services (or micro-services).
    • Functionality: Kubernetes as a complex installation and setup process, but it not as limited as Docker Swarm.
    • Monitoring: It supports multiple versions of logging and monitoring when the services are deployed within the cluster (Elasticsearch/Kibana (ELK), Heapster/Grafana, Sysdig cloud integration).
    • Scalability: All-in-one framework for distributed systems.
    • Other Benefits: Kubernetes is backed by the Cloud Native Computing Foundation (CNCF), huge community among container orchestration tools, it is an open source and modular tool that works with any OS.
    See more
    Google Cloud SQL logo

    Google Cloud SQL

    543
    572
    46
    Fully managed relational database service for MySQL, PostgreSQL, and SQL Server.
    543
    572
    + 1
    46
    PROS OF GOOGLE CLOUD SQL
    • 13
      Fully managed
    • 10
      Backed by Google
    • 10
      SQL
    • 4
      Flexible
    • 3
      Encryption at rest and transit
    • 3
      Automatic Software Patching
    • 3
      Replication across multiple zone by default
    CONS OF GOOGLE CLOUD SQL
      Be the first to leave a con

      related Google Cloud SQL posts

      Suman Adhikari
      Full Stack (Founder) at Peuconomia Int'l Pvt. Ltd. · | 10 upvotes · 34.8K views

      We use Go for the first-off due to our knowledge of it. Second off, it's highly performant and optimized for scalability. We run it using dockerized containers for our backend REST APIs.

      For Frontend, we use React with Next.js at vercel. We use NextJS here mostly due to our need for Server Side Rendering and easier route management.

      For Database, we use MySQL as it is first-off free and always has been in use with us. We use Google Cloud SQL from GCP that manages its storage and versions along with HA.

      All stacks are free to use and get the best juice out of the system. We also use Redis for caching for enterprise-grade apps where data retrieval latency matters the most.

      See more
      Ido Shamun
      at The Elegant Monkeys · | 6 upvotes · 43K views

      As far as the backend goes, we first had to decide which database will power most of Daily services. Considering relational databases vs document datbases, we decided that the relational model is a better fit for Daily as we have a lot of connections between the different entities. At the time MySQL was the only service available on Google Cloud SQL so this was out choice. In terms of #backend development Node.js powers most of our services, thanks to its amazing ecosystem there are a lot of modules publicly available to shorten the development time. Go is for the light services which are all about performance and delivering quickly the response, such as our redirector service.

      See more
      Heroku Redis logo

      Heroku Redis

      107
      163
      5
      Reliable and powerful Redis as a service
      107
      163
      + 1
      5
      PROS OF HEROKU REDIS
      • 5
        More reliable than the other Redis add-ons
      CONS OF HEROKU REDIS
      • 1
        More expensive than the other options

      related Heroku Redis posts

      MySQL logo

      MySQL

      122.3K
      103.4K
      3.7K
      The world's most popular open source database
      122.3K
      103.4K
      + 1
      3.7K
      PROS OF MYSQL
      • 800
        Sql
      • 679
        Free
      • 562
        Easy
      • 528
        Widely used
      • 489
        Open source
      • 180
        High availability
      • 160
        Cross-platform support
      • 104
        Great community
      • 78
        Secure
      • 75
        Full-text indexing and searching
      • 25
        Fast, open, available
      • 16
        SSL support
      • 15
        Reliable
      • 14
        Robust
      • 8
        Enterprise Version
      • 7
        Easy to set up on all platforms
      • 2
        NoSQL access to JSON data type
      • 1
        Relational database
      • 1
        Easy, light, scalable
      • 1
        Sequel Pro (best SQL GUI)
      • 1
        Replica Support
      CONS OF MYSQL
      • 16
        Owned by a company with their own agenda
      • 3
        Can't roll back schema changes

      related MySQL posts

      Tim Abbott

      We've been using PostgreSQL since the very early days of Zulip, but we actually didn't use it from the beginning. Zulip started out as a MySQL project back in 2012, because we'd heard it was a good choice for a startup with a wide community. However, we found that even though we were using the Django ORM for most of our database access, we spent a lot of time fighting with MySQL. Issues ranged from bad collation defaults, to bad query plans which required a lot of manual query tweaks.

      We ended up getting so frustrated that we tried out PostgresQL, and the results were fantastic. We didn't have to do any real customization (just some tuning settings for how big a server we had), and all of our most important queries were faster out of the box. As a result, we were able to delete a bunch of custom queries escaping the ORM that we'd written to make the MySQL query planner happy (because postgres just did the right thing automatically).

      And then after that, we've just gotten a ton of value out of postgres. We use its excellent built-in full-text search, which has helped us avoid needing to bring in a tool like Elasticsearch, and we've really enjoyed features like its partial indexes, which saved us a lot of work adding unnecessary extra tables to get good performance for things like our "unread messages" and "starred messages" indexes.

      I can't recommend it highly enough.

      See more
      Conor Myhrvold
      Tech Brand Mgr, Office of CTO at Uber · | 23 upvotes · 2.3M views

      Our most popular (& controversial!) article to date on the Uber Engineering blog in 3+ yrs. Why we moved from PostgreSQL to MySQL. In essence, it was due to a variety of limitations of Postgres at the time. Fun fact -- earlier in Uber's history we'd actually moved from MySQL to Postgres before switching back for good, & though we published the article in Summer 2016 we haven't looked back since:

      The early architecture of Uber consisted of a monolithic backend application written in Python that used Postgres for data persistence. Since that time, the architecture of Uber has changed significantly, to a model of microservices and new data platforms. Specifically, in many of the cases where we previously used Postgres, we now use Schemaless, a novel database sharding layer built on top of MySQL (https://eng.uber.com/schemaless-part-one/). In this article, we’ll explore some of the drawbacks we found with Postgres and explain the decision to build Schemaless and other backend services on top of MySQL:

      https://eng.uber.com/mysql-migration/

      See more
      Amazon RDS for PostgreSQL logo

      Amazon RDS for PostgreSQL

      808
      598
      40
      Set up, operate, and scale PostgreSQL deployments in the cloud
      808
      598
      + 1
      40
      PROS OF AMAZON RDS FOR POSTGRESQL
      • 25
        Easy setup, backup, monitoring
      • 13
        Geospatial support
      • 2
        Master-master replication using Multi-AZ instance
      CONS OF AMAZON RDS FOR POSTGRESQL
        Be the first to leave a con

        related Amazon RDS for PostgreSQL posts

        I could spin up an Amazon EC2 instance and install PostgreSQL myself, review latest configuration best practices, sort Amazon EBS storage for data, set up a snapshot process etc.

        Alternatively I could use Amazon RDS, Amazon RDS for PostgreSQL or Heroku Postgres and have most of that work handled for me, by a team of world experts...

        See more
        Google Cloud SQL for PostgreSQL logo

        Google Cloud SQL for PostgreSQL

        144
        104
        0
        Fully-managed database service- set up, maintain, manage, and administer your relational PostgreSQL databases in the cloud
        144
        104
        + 1
        0
        PROS OF GOOGLE CLOUD SQL FOR POSTGRESQL
          Be the first to leave a pro
          CONS OF GOOGLE CLOUD SQL FOR POSTGRESQL
            Be the first to leave a con

            related Google Cloud SQL for PostgreSQL posts