Support on Telegram VPS login Video login

A database on your own VPS or as a service: what you’re really saving

VPS and servers Published: · 5 min read

Installing PostgreSQL on a VPS takes half an hour. Making sure the database doesn’t get lost, doesn’t go down because of one heavy query and doesn’t become an entry point for attackers takes months of work. Let’s do the math.

What “doing it yourself” includes

Installation, memory tuning for your workload, users and permissions, TLS, firewall, daily backups with verification, updates, monitoring of connections and slow queries, and responding at night when the database stops answering. Every item is either your time or a risk.

What a database as a service includes

  • A dedicated database server in a private network with your VPS — traffic never leaves it.
  • Daily backups; on the Medium plan, point-in-time recovery to any minute within 7 days using the transaction log.
  • A monthly test restore — a backup that has actually been verified.
  • Minor version updates on a schedule, major ones by agreement.
  • Monitoring: connections, locks, slow queries, size — with alerts in Telegram.
  • Tuning and index recommendations when the application starts to slow down.

Example: an online store

OptionPer dayPer monthWho is responsible for backups and failures
PostgreSQL on a VPS 2 vCPU / 4 GB / 50 GB9 500 UZS285 000 UZSyou
Managed DB Small19 500 UZS585 000 UZSMyCloud

The difference is 300 000 UZS per month. One hour of online store downtime on a peak day, or one lost database without a fresh backup, costs more.

When your own database on a VPS is a sound choice

Test environments, internal tools without critical data, projects with their own DBA on the team. In all other cases the database is the most valuable thing your application has, and professional management is worth the money.

How to migrate

A dump, a restore on the new server and a connection string switch — usually one evening. For large databases we set up replication and switch over with no downtime. When you move to MyCloud, we advise and help with the migration.

Need help with the task from this article?

We’ll pick a configuration, calculate the cost and help with the move.

Not sure what to choose? We’ll help you pick a configuration

Tell us what you need — a server for 1C, cameras for a pickup point or a move from another host. We’ll find a solution, give you an exact price and help with the move: we’ll advise and walk you through the steps.