Live data from Hacker News

11 years of hosting a SaaS

ghiculescu.substack.com

221–222 of 222 posts

Re: 11 years of hosting a SaaS

#221
post #207
post #200

Earlier quoted context omitted.

Just curious, if you feel comfortable sharing, what do you use as your database? I'd agree Postgres is not the right answer to every problem, but the documentation of its failure modes and the mitigations thereof make it a "good" answer to "most" problems. I'm curious what the "problem" (in access pattern terms, doesn't have to be business terms) and "solution" (i.e. persistence technology) is in your setup!

Sure. I use RethinkDB, which works well, but has been pretty much abandoned at this point. It's a good database, but it wasn't "in fashion" like many worse solutions were. I am working on replacing it with FoundationDB. I want to have a fully distributed database with strict serializable semantics (see https://jepsen.io/consistency ), and there is very little out there that gets the job done. FoundationDB is really i…

Appreciate the glimpse!

Should have elaborated, by access patterns I was referring to proportion of readers to writers, the distribution of load over time, the distribution of transaction sizes, so on.

Although your discussion of query language is an interesting one – that the goal is essentially efficient (de-)serialization with "retrieval-from-other-process" costs that are minimal for your workload and subset of query space.

Re: 11 years of hosting a SaaS

#222

Earlier quoted context omitted.

I'm looking at the ansible playbooks to setup my favourite beefy baremetal Hetzner server (128GB ram, Ryzen 9 5950X 16-Core, 450Gb fast NVME SSD, 3.5TB x2 NVME SSDs, 155€/month): - Install Debian 11 while booted in rescue mode. - Setup the root file system encryption using cryptsetup and dropbear (to enter the key during the boot through SSH). Involves chroot and some fun commands. - Setup ZFS encrypted mirror filesy…

> - Installation of (many) postgresql instances and other craps and you missing part about fault tolerance and fall back which is most complicated.

pg_auto_failover has your back - https://github.com/hapostgres/pg_auto_failover
Post reply on HN