Your DynamoDB bill tripled when traffic doubled PostgreSQL at predictable cost in 30 days

DynamoDB charges per read/write unit. When your traffic doubled, your bill tripled because hot partitions caused throttling and retries.

  • Predictable pricing
  • Real SQL queries
  • Predictable A fixed instance price instead of per-request billing
  • 1 Query for what DynamoDB needs 3 API calls
  • 14 days PostgreSQL handling your read traffic

How it shows up

DynamoDB was sold as 'infinitely scalable.' The bill was supposed to be too. The database scales. Your ability to query it does not.

The DynamoDB pricing trap

Even after the November 2024 price cut, DynamoDB on-demand bills per request: $0.625 per million write request units and $0.125 per million read request units in us-east-1. The bill grows with every write, before reads, storage, or GSI writes that double every indexed put. PostgreSQL on RDS runs the same workload on a fixed instance price, regardless of request volume. DynamoDB's pricing punishes growth.

No JOINs, ever

Need user data with their orders? That's two API calls and application-level stitching. Need users with orders with products? Three calls. PostgreSQL: one SQL query with JOINs. Your application code carries all the stitching because DynamoDB can't relate data.

Access pattern lock-in

DynamoDB requires knowing your query patterns before designing the schema. Need a new query? Redesign the table or add a GSI ($$$). PostgreSQL: write any SQL query against any column. No advance planning needed.

Single-table design nightmare

Your DynamoDB uses single-table design with composite keys like 'USER#123#ORDER#456'. Debugging requires mental parsing. New developers spend weeks understanding the data model. PostgreSQL: users table, orders table, foreign key. Self-documenting.

Who it is for

Best for teams who chose DynamoDB for scale but now need relational queries and predictable costs.

Best fit

Your DynamoDB bill is growing faster than your revenue. Your application code is complex because you're doing JOINs in application logic. You want SQL queries and predictable pricing.

  • DynamoDB with single-table or multi-table design
  • Growing costs that correlate with traffic, not value
  • Application code that stitches data from multiple queries

What happens if you stay on DynamoDB

Every traffic increase multiplies your bill.

  1. Cost compounds with growth

    DynamoDB on-demand pricing scales linearly with requests, and every Global Secondary Index multiplies it: each write to an indexed attribute is billed again per GSI. Your bill grows faster than traffic. PostgreSQL on RDS has fixed monthly costs that don't change with request volume, and adding an index costs nothing per query. The more you grow, the worse DynamoDB's economics get.

  2. Feature requests blocked

    Product wants a new report: 'show me all orders by region with customer details.' On DynamoDB, that requires a new GSI, a table scan, or a complex Lambda pipeline. On PostgreSQL, it's a 5-line SQL query. Features are blocked by data model limitations.

  3. AWS lock-in deepens

    DynamoDB only runs on AWS. DynamoDB Streams only trigger Lambda. Your entire data pipeline is AWS-proprietary. PostgreSQL runs anywhere: AWS RDS, Supabase, self-hosted, or another cloud. Migration away from AWS becomes possible.

What we do in 30 days

Denormalized items become normalized tables.

  1. Days 1-5: Schema design

    DynamoDB items analyzed. Single-table design deconstructed into proper entities. Relational schema designed with foreign keys, indexes, and constraints. Access patterns mapped to SQL queries. GSIs mapped to PostgreSQL indexes.

  2. Days 6-14: Data migrated

    DynamoDB exported to S3 with the native export-to-S3 feature, no table read capacity consumed. Query-shaped single-table items unpacked into entity-shaped relational rows, then loaded and indexed in PostgreSQL. Application queries rewritten from DynamoDB SDK calls to Prisma/Drizzle ORM. Dual-read validation comparing results.

  3. Days 15-30: Cutover

    Application switches to PostgreSQL-only. DynamoDB Streams replaced with PostgreSQL triggers or application events. Cost comparison report generated. DynamoDB tables decommissioned.

What you get

A relational PostgreSQL database with normalized schema and SQL query capabilities.

Shipped deliverables

Complete migration from DynamoDB to PostgreSQL.

  • Normalized relational schema replacing single-table design
  • All data migrated with integrity verification
  • Application queries rewritten to SQL via Prisma/Drizzle

Why Pineido

We understand DynamoDB's data model well enough to decompose it into proper relational tables.

NoSQL-to-SQL expertise

DynamoDB schemas are query-shaped, not entity-shaped: the model is built around the questions you asked at launch. We know that the partition key plus sort key becomes a composite primary key or a foreign key, that GSIs become PostgreSQL indexes, and that single-table 'PK: USER#123, SK: ORDER#456' unpacks into a proper orders table with a user_id foreign key. We've re-normalized single-table designs in production.

Answers, without the sales call

Can we still use AWS?

Yes. PostgreSQL runs on AWS RDS or Aurora. You stay on AWS, and only the database engine changes. Or migrate to Supabase for managed PostgreSQL with auth, storage, and edge functions included.

What replaces Global Secondary Indexes?

PostgreSQL indexes are more powerful than GSIs. B-tree, GIN, GiST, and partial indexes cover every DynamoDB access pattern. Plus you can create indexes anytime without capacity planning or additional costs.

How does the data model change?

Single-table items become normalized tables with proper foreign keys and types. 'PK: USER#123, SK: ORDER#456' becomes an orders table with user_id, order_date, and typed columns. The schema becomes self-documenting instead of requiring a decoder ring.

What about DynamoDB Streams and event-driven patterns?

DynamoDB Streams become PostgreSQL LISTEN/NOTIFY channels or Supabase Realtime subscriptions. Your event-driven patterns keep working with the same triggers: row insert, update, and delete events fire notifications to your application. The difference is you can now JOIN the event data with other tables, which DynamoDB Streams could never do.

How do you handle DynamoDB's partition key access patterns?

We analyze your DynamoDB access patterns and design PostgreSQL indexes to match. Each query that used a partition key plus sort key gets a composite index. Scan operations become indexed queries that run faster because PostgreSQL's query planner optimizes them. You gain the ability to query any column, not just the ones you pre-defined as keys.

Will our application code need significant changes?

The DynamoDB SDK calls become Prisma queries or Supabase client calls. PutItem becomes create, GetItem becomes findUnique, and Query becomes findMany with filters. The data shapes stay the same because your application logic doesn't change. We change your data access layer, and the rest of your application stays untouched.

Predictable A fixed instance price instead of per-request billing

Get predictable database costs

Your DynamoDB bill grows with every request.

Fixed price.

You leave with

  1. Day 1: DynamoDB item analysis and relational schema design
  2. Day 5: PostgreSQL schema deployed with normalized tables

ByFounder and Imaginator

Published Updated