37signals · DHH
$10M / 5 yr
Moved seven apps including HEY off AWS onto owned hardware. Savings passed $1M in year one and ran ahead of projections.
Source [5] →SOLUTIONS · CLOUD EXIT
Assess managed databases, cloud virtual machines and your own infrastructure against cost, reliability and operational responsibilities.
The right deployment model depends on workload, purchasing terms and team capabilities. Self-managed PostgreSQL offers direct control over configuration and infrastructure, while requiring ownership of capacity, upgrades, backup validation and incident handling. PGSTY can help assess these requirements and plan a staged migration.
Database and compute pricing was captured in 2025-04; disk price references were captured in 2026-08-06. Other dates are listed in the sources. The calculator uses fixed assumptions and is not live pricing, a PGSTY quotation or a savings guarantee. Staffing, migration, networking, additional backups, taxes and risk costs are not fully included, so the results are not a complete total cost of ownership.
Review assumptions and sources →THE LEDGER
Historical reference prices are normalised to common units. Instance specifications, hardware capability, redundancy and service scope are not equivalent; read the notes and sources alongside the charts.
01 · DATABASE · ¥/vCPU·MO
02 · RAW COMPUTE · ¥/vCPU·MO
03 · OBJECT STORAGE · ¥/TB·MO
| Option | 1 TB | 10 TB | 100 TB | 1 PB |
|---|---|---|---|---|
| AWS S3 Standard | ¥161/mo | ¥1,610/mo | ¥16,100/mo | ¥164,864/mo |
| Silo/MinIO self-host ×3 | ¥44/mo | ¥435/mo | ¥4,350/mo | ¥44,544/mo |
| Bare NVMe baseline | ¥15/mo | ¥145/mo | ¥1,450/mo | ¥14,848/mo |
CALCULATOR
Adjust compute, memory, nodes, storage, billing term and support tier to explore this model. Results are illustrative estimates based on historical data.
AWS has no standard RDS class at a 1:2 RAM ratio — that row is hidden for this selection.
| Option | Compute | Storage | Subscription | Total | Multiple |
|---|
Model: total = compute + storage (+ subscription on self-host rows). RDS at 1 node = basic single instance; 2 = HA pair; more = HA pair + read replicas (estimated). AWS long terms use 3-yr reserved (no 5-yr tier). Storage priced at Aliyun ESSD PL1 ¥1/GB·mo, AWS gp3 $0.08/GB·mo, self-host NVMe ¥14.5/TB·mo; cloud storage is counted once, conservatively (verify actual replication and storage billing with the provider), self-host carries one full copy per node. Discount ladder: on-demand 1.5× · monthly 1× · 3-yr 0.45× · 5-yr 0.32× (Aliyun's ladder, applied to ECS as an estimate); no term discount applied to storage. People costs excluded on both sides.
METHODOLOGY & SOURCES
PUBLIC REFERENCES
37signals · DHH
$10M / 5 yr
Moved seven apps including HEY off AWS onto owned hardware. Savings passed $1M in year one and ran ahead of projections.
Source [5] →Ahrefs
$400M / 3 yr
The search-index giant priced its own datacenter against AWS list prices, line by line: staying off the cloud saved roughly $400M over three years.
Source [6] →Tantan · 探探
25,000 vCPU
Runs PostgreSQL & Redis on ~25,000 self-hosted cores at millions of QPS, with a DBA team of two to three — the ¥19.5 core·month reference behind the chart above.
Source [1] →RedNote · 小红书
Self-host first
A platform that grew up in the cloud-native era, now steering its infrastructure strategy toward self-hosting first.
Source [7] →These are third-party reports or cost analyses, not PGSTY customer cases, endorsements or predictions for your project. Consult the linked sources for context.
THE ROAD
Establish requirements, validate the design in a pilot and rehearse the migration. Scope can be agreed for each stage; related prices below are starting points.
≈ Quick Consultation $30 / issue · Expert Session $400 / session
≈ Open Source · Free
≈ Incident Assistance $4,000 / day
≈ Subscription from $8K/year
REQUIREMENTS
Automation reduces repetitive work, but does not replace clear ownership. Assess capacity, upgrades, monitoring, incident response and recovery testing, along with any additional support your team needs.
Define failure domains, replication and backup retention against business objectives, then test failover and recovery. A demo or default configuration does not replace production acceptance.
Data residency, access, keys, logs, patching and audit requirements depend on your business and jurisdiction. Your security and compliance teams should establish requirements and review the proposed architecture.
THE ESSAYS
These technical articles and commentary by our founder provide background for the model. Read opinions and historical data in the context of their dates and assumptions.
The math
The receipts
Background & perspectives
WORK WITH PGSTY
Tell us about your environment, objectives, and timeline. We will help you define the next step.
FAQ
No. Cost depends on workload, pricing agreements, utilisation, staffing, resilience requirements and migration effort. This historical model is an initial illustration; a decision needs current quotes and a complete assessment for your environment.
Automation can reduce repetitive work, but a team still needs to own access control, capacity, upgrades, recovery testing and incident decisions. An assessment helps identify these responsibilities and any support needed.
Pigsty integrates Patroni and etcd for failover and pgBackRest for backup and recovery. The topology, recovery objectives and operating procedures must be designed and tested for your workload; the software alone does not establish a service guarantee.
The window depends on database size, schema, replication options and application behaviour. We assess compatibility, rehearse the migration and agree validation and rollback steps before setting a cutover window.
Yes. Start with the source engine, schema, extensions, application dependencies and workload. Compatibility options do not make every application portable; the assessment establishes the required changes and a realistic scope.