<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s" -->

---
title: Migrating mission-critical payments at Nubank to Amazon...
description: Nubank, serving 135 million customers, migrated its NuPay payment infrastructure from self-managed PostgreSQL to Amazon Aurora PostgreSQL to address critical...
canonical: https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Migrating mission-critical payments at Nubank to Amazon Aurora PostgreSQL | daily.dev
og:description: Nubank, serving 135 million customers, migrated its NuPay payment infrastructure from self-managed PostgreSQL to Amazon Aurora PostgreSQL to address critical...
og:url: https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s
og:image: https://api.daily.dev/og/posts/uHKWMXH9s.png
og:image:alt: Migrating mission-critical payments at Nubank to Amazon Aurora PostgreSQL
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating mission-critical payments at Nubank to Amazon Aurora PostgreSQL

**[AWS Database Blog](https://daily.dev/sources/aws-database-blog)** · 14 min read · 5 upvotes · 0 comments

## Summary

Nubank, serving 135 million customers, migrated its NuPay payment infrastructure from self-managed PostgreSQL to Amazon Aurora PostgreSQL to address critical performance and operational issues. The self-managed setup suffered from queries taking over 13 minutes, replication lag exceeding 4 minutes at peak, and storage expansions requiring downtime. Aurora's log-based writes, shared storage architecture (75% memory to shared buffers), and Query Plan Management delivered up to 1,900x query performance improvements in specific cases and an average 15–20% improvement across production workloads. Replication lag dropped from 3–4 minutes to a few seconds. The migration used AWS DMS with 10 parallel tasks and CDC, completing the actual cutover in just over an hour against a 5-hour maintenance window. Operational benefits included maintenance windows shrinking from 11 hours to 1–1.5 hours, automatic storage scaling without downtime, and a 25% cost reduction by consolidating from three instances to two.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://aws.amazon.com/blogs/database/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql>

---

Tags: [#aws](https://daily.dev/tags/aws), [#database](https://daily.dev/tags/database), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Migrating mission-critical payments at Nubank to Amazon Aurora PostgreSQL","url":"https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s"},"datePublished":"2026-07-21T17:02:32.938Z","dateModified":"2026-07-21T22:20:35.553Z","description":"Nubank, serving 135 million customers, migrated its NuPay payment infrastructure from self-managed PostgreSQL to Amazon Aurora PostgreSQL to address critical...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0ab3e86892efe4b77e70c57e82362417?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0ab3e86892efe4b77e70c57e82362417?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"AWS Database Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"AWS Database Blog","logo":"https://media.daily.dev/image/upload/s--En-avd2a--/f_auto,q_auto/v1780213446/logos/aws-database-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/aws-database-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/migrating-mission-critical-payments-at-nubank-to-amazon-aurora-postgresql-uhkwmxh9s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"aws,database,postgresql","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AWS Database Blog","item":"https://daily.dev/sources/aws-database-blog"},{"@type":"ListItem","position":3,"name":"Migrating mission-critical payments at Nubank to Amazon Aurora PostgreSQL"}]}
```

