StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Application & Data
  3. NoSQL Databases
  4. NOSQL Database As A Service
  5. Amazon DynamoDB vs Heroku Postgres

Amazon DynamoDB vs Heroku Postgres

OverviewDecisionsComparisonAlternatives

Overview

Amazon DynamoDB
Amazon DynamoDB
Stacks4.0K
Followers3.2K
Votes195
Heroku Postgres
Heroku Postgres
Stacks607
Followers314
Votes38

Amazon DynamoDB vs Heroku Postgres: What are the differences?

Introduction

In this comparison, we will explore the key differences between Amazon DynamoDB and Heroku Postgres. Both of these databases serve different purposes and offer distinct features, making it important to understand their differences before choosing the right one for your needs.

  1. Scalability and Performance: Amazon DynamoDB is a fully managed NoSQL database that provides high scalability and performance. It can handle millions of requests per second and automatically scales its storage capacity to accommodate data growth. On the other hand, Heroku Postgres is a relational database that offers scalability and performance based on the chosen tier. While it can handle high traffic, it may require manual scaling and may not be as horizontally scalable as DynamoDB.

  2. Data Modeling: DynamoDB follows a flexible schema, allowing you to store varying types of data in a single table. It is schema-less and can accommodate evolving data models. In contrast, Heroku Postgres follows a rigid schema with predefined tables, columns, and relationships. It requires upfront schema definition and may not be as suitable for rapidly changing data structures.

  3. Data Consistency: DynamoDB offers eventual consistency by default, where changes made to data may take some time to propagate across all replicas. However, you can choose strong consistency for critical operations. Heroku Postgres, being a relational database, offers strong consistency by default, ensuring that all read operations return the latest committed data.

  4. Querying and Indexing: DynamoDB provides fast, key-value access to data through a primary key or secondary indexes. It supports basic querying using these keys and offers additional querying capabilities through the use of DynamoDB Streams and AWS Lambda functions. Heroku Postgres, being a relational database, allows more complex querying with its support for SQL queries, joins, and aggregations.

  5. Pricing and Cost Management: DynamoDB pricing is based on provisioned throughput capacity, data storage, and additional features like global tables and on-demand capacity. It offers a serverless model where you pay for the resources consumed. Heroku Postgres pricing is based on the selected tier, which determines the available resources and performance. You pay for the provisioned resources, regardless of usage, which may be less flexible than DynamoDB's pay-as-you-go model.

  6. Managed Service and Deployment: DynamoDB is a fully managed service provided by Amazon Web Services (AWS). It handles infrastructure provisioning, software patching, and automatic backups. Heroku Postgres is also a managed database service provided by Heroku, which simplifies database provisioning and management. However, it may require more manual configuration and maintenance compared to DynamoDB.

In summary, Amazon DynamoDB offers high scalability, flexible data modeling, eventual consistency, and serverless pricing, making it suitable for applications with rapidly evolving data and unpredictable workloads. Heroku Postgres, on the other hand, excels in strong consistency, complex querying, rigid data modeling, and may be more suitable for applications with well-defined schemas and complex relationships.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Amazon DynamoDB, Heroku Postgres

Doru
Doru

Solution Architect

Jun 9, 2019

ReviewonAmazon DynamoDBAmazon DynamoDB

I use Amazon DynamoDB because it integrates seamlessly with other AWS SaaS solutions and if cost is the primary concern early on, then this will be a better choice when compared to AWS RDS or any other solution that requires the creation of a HA cluster of IaaS components that will cost money just for being there, the costs not being influenced primarily by usage.

1.38k views1.38k
Comments
Jorge
Jorge

Jan 15, 2020

Needs advice

Considering moving part of our PostgreSQL database infrastructure to the cloud, however, not quite sure between AWS, Heroku, Azure and Google cloud. Things to consider: The main reason is for backing up and centralize all our data in the cloud. With that in mind the main elements are: -Pricing for storage. -Small team. -No need for high throughput. -Support for docker swarm and Kubernetes.

51.8k views51.8k
Comments

Detailed Comparison

Amazon DynamoDB
Amazon DynamoDB
Heroku Postgres
Heroku Postgres

With it , you can offload the administrative burden of operating and scaling a highly available distributed database cluster, while paying a low price for only what you use.

Heroku Postgres provides a SQL database-as-a-service that lets you focus on building your application instead of messing around with database management.

Automated Storage Scaling – There is no limit to the amount of data you can store in a DynamoDB table, and the service automatically allocates more storage, as you store more data using the DynamoDB write APIs;Provisioned Throughput – When creating a table, simply specify how much request capacity you require. DynamoDB allocates dedicated resources to your table to meet your performance requirements, and automatically partitions data over a sufficient number of servers to meet your request capacity;Fully Distributed, Shared Nothing Architecture
High Availability;Rollback;Dataclips;Automated Health Checks
Statistics
Stacks
4.0K
Stacks
607
Followers
3.2K
Followers
314
Votes
195
Votes
38
Pros & Cons
Pros
  • 62
    Predictable performance and cost
  • 56
    Scalable
  • 35
    Native JSON Support
  • 21
    AWS Free Tier
  • 7
    Fast
Cons
  • 4
    Only sequential access for paginate data
  • 1
    Scaling
  • 1
    Document Limit Size
Pros
  • 29
    Easy to setup
  • 3
    Follower databases
  • 3
    Dataclips for sharing queries
  • 3
    Extremely reliable
Cons
  • 2
    Super expensive
Integrations
Amazon RDS for PostgreSQL
Amazon RDS for PostgreSQL
PostgreSQL
PostgreSQL
MySQL
MySQL
SQLite
SQLite
Azure Database for MySQL
Azure Database for MySQL
PostgreSQL
PostgreSQL
Heroku
Heroku

What are some alternatives to Amazon DynamoDB, Heroku Postgres?

Azure Cosmos DB

Azure Cosmos DB

Azure DocumentDB is a fully managed NoSQL database service built for fast and predictable performance, high availability, elastic scaling, global distribution, and ease of development.

Cloud Firestore

Cloud Firestore

Cloud Firestore is a NoSQL document database that lets you easily store, sync, and query data for your mobile and web apps - at global scale.

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.

Cloudant

Cloudant

Cloudant’s distributed database as a service (DBaaS) allows developers of fast-growing web and mobile apps to focus on building and improving their products, instead of worrying about scaling and managing databases on their own.

Google Cloud Bigtable

Google Cloud Bigtable

Google Cloud Bigtable offers you a fast, fully managed, massively scalable NoSQL database service that's ideal for web, mobile, and Internet of Things applications requiring terabytes to petabytes of data. Unlike comparable market offerings, Cloud Bigtable doesn't require you to sacrifice speed, scale, or cost efficiency when your applications grow. Cloud Bigtable has been battle-tested at Google for more than 10 years—it's the database driving major applications such as Google Analytics and Gmail.

ElephantSQL

ElephantSQL

ElephantSQL hosts PostgreSQL on Amazon EC2 in multiple regions and availability zones. The servers are continuously transferring the Write-Ahead-Log (the transaction log) to S3 for maximum reliability.

Google Cloud Datastore

Google Cloud Datastore

Use a managed, NoSQL, schemaless database for storing non-relational data. Cloud Datastore automatically scales as you need it and supports transactions as well as robust, SQL-like queries.

CloudBoost

CloudBoost

CloudBoost.io is a database service for the “next web” - that not only does data-storage, but also search, real-time and a whole lot more which enables developers to build much richer apps with 50% less time saving them a ton of cost and helping them go to market much faster.

Firebase Realtime Database

Firebase Realtime Database

It is a cloud-hosted NoSQL database that lets you store and sync data between your users in realtime. Data is synced across all clients in realtime, and remains available when your app goes offline.

restdb.io

restdb.io

RestDB is a NoSql document oriented database cloud service. Data is accessed as JSON objects via HTTPS. This gives great flexibility, easy system integration and future compatibility.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase