←back to thread

Use One Big Server (2022)

(specbranch.com)
343 points antov825 | 1 comments | | HN request time: 0s | source
Show context
matt-p ◴[] No.45085454[source]
A thoroughly good article. It's probably worth also considering adding a CDN if you take this approach at scale. You get to use their WAF and DNS failover.

A big pain point that I personally don't love is that this non-cloud approach normally means running my own database. It's worth considering a provider who also provides cloud databases.

If you go for an 'active/passive' setup, consider saving even more money by using a cloud VM with auto scaling for the 'passive' part.

In terms of pricing the deals available these days on servers are amazing you can get 4GB RAM VPSs with decent CPU and bandwidth for ~$6 or bare metal for ~$90 for 32GB RAM quad core worth using sites like serversearcher.com to compare.

replies(2): >>45086101 #>>45086515 #
railorsi ◴[] No.45086515[source]
What’s the issue with running Postgres inside a docker container + regular backups? Never had problem and relatively easy to manage.
replies(2): >>45086789 #>>45095728 #
matt-p ◴[] No.45086789[source]
no PITB, but mostly just 'it's hassle' for the application server I literally don't need backups, just automated provisioning/docker container etc. Adding postgres then means I need full backups including PITB because I don't even want to lose an hours data.
replies(1): >>45090194 #
doganugurlu ◴[] No.45090194{3}[source]
Or use SQLite and your backups are literally a copy of a file.

You can abuse git for it if you really want to cut corners.

replies(1): >>45090667 #
vanviegen ◴[] No.45090667{4}[source]
Only if you can freeze your application for that long, in which case your statement is true for all non-broken databases.
replies(2): >>45093715 #>>45099428 #
wild_egg ◴[] No.45093715{5}[source]
It only freezes your application if you've misconfigured it.
replies(1): >>45100917 #
1. vanviegen ◴[] No.45100917{6}[source]
If you want to backup your database using just a file copy, you'd better freeze your database if you value your data. Or use a fancy snapshotting filesystem.