Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Amazon Aurora PostgreSQL: The Complete Guide

Amazon Aurora PostgreSQL is AWS's managed PostgreSQL-compatible database, with compute instances that share a distributed storage volume. An operator reported a \$6,000 monthly bill for a roughly 5 TB Aurora PostgreSQL database. Roughly \$5,000 of the bill came from 22 billion storage I/O requests . Aurora's I/O-Optimized configuration trades those per-request I/O charges for higher compute and…

Amazon Aurora PostgreSQL is AWS’s managed database service that offers PostgreSQL compatibility with a distributed storage architecture. A report indicated a $6,000 monthly cost for a 5 TB Aurora PostgreSQL database, with $5,000 attributed to 22 billion storage I/O requests. Aurora’s I/O-Optimized configuration reduces those I/O charges by increasing compute and storage rates.

Graphite, for instance, migrated an Aurora PostgreSQL cluster from Standard to I/O-Optimized, achieving a 90% reduction in monthly database expenses. This shift was driven by heavy I/O from bidirectional GitHub synchronization. Both configurations utilize Aurora’s shared-storage design, where storage expands independently of compute resources, and readers access the same durable data without needing separate copies per instance.

While instance capacity and application recovery remain crucial, queries can deplete the local temporary space of a writer, and readers do not augment a single writer's capacity. Applications must reconnect and retry interrupted transactions post-failover. To optimize costs, select an Aurora configuration based on measured I/O demand, traffic patterns, write latency, and recovery needs.

Key considerations include Aurora PostgreSQL’s suitability for transactional services requiring managed durability and read scaling. In multi-writer clusters, writers and readers share distributed storage, with additional readers boosting read capacity but leaving writes to the primary writer. Compute provisioning depends on traffic patterns, with provisioned instances being cost-effective for steady demand.

Aurora Serverless auto-adjusts capacity for variable traffic but the savings depend on connection behavior and resume latency expectations. Evaluate whether I/O-Optimized reduces the total bill by comparing the savings from avoided Standard I/O charges against the increased compute and storage costs. AWS’s 25% I/O-spend rule suggests potential candidates but doesn’t define the break-even point.

Plan for local storage limits and application recovery, testing connection recovery and transaction interruptions during failover. Manage temporary storage separately from the shared volume and rehearse migration cutovers and major-version upgrades. When comparing Aurora and RDS PostgreSQL, consider factors such as availability, recovery, compatibility, total cost, and development workflows.

Additionally, evaluate alternative architectures based on storage latency, administrative control, and write scaling requirements to determine the most suitable database solution.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Fix a switch over serial when SSH is down

SSH to 192.0.2.10 is down. The console port on router1 still works. This walk-through uses JackedIN 1.2.1 to open that serial session in the window or from the command line, wait for the device…

  • Console port accessible on router when SSH is down
  • JackedIN program opens serial session via GUI or CLI
  • Connect to serial port using JackedIN's default settings

More from Tuesday 24 November →