HackerLangs
TopNewTrendsCommentsPastAskShowJobs

anivan_

42 karmajoined anno scorso

Submissions

Show HN: PostgreSQL performance and cost across 23 EC2 instance types

postgres.saneengineer.com
97 points·by anivan_·4 giorni fa·20 comments

Bitly handles 93 writes/s – URL shortener interviews ask for 1160

saneengineer.com
3 points·by anivan_·2 mesi fa·1 comments

Bitly handles 93 writes/s – URL shortener interviews ask for 1160

saneengineer.com
3 points·by anivan_·4 mesi fa·1 comments

comments

anivan_
·3 giorni fa·discuss
That might be an interesting comparison :)

Especially, cost-efficiency. I'll think how to put it, thanks :)
anivan_
·3 giorni fa·discuss
I think we have a lot of DBs specialised for heavy write, like anything with LSM-tree in their base.

My vision is that there will be more movement in this direction, but still, we need first to understand limits of "easy to work with" databases like Postgres. It's easy to underestimate what Postgres can do.

And only when it's not enough, move to something LSM-tree-based.
anivan_
·3 giorni fa·discuss
It's requests per second, and I briefly described that on https://postgres.saneengineer.com/about

Small badges will be helpful, though. I added hovers in some places, like for latency numbers, but I think more visible badges will work better, thanks!
anivan_
·3 giorni fa·discuss
Yeah, good point - I've limited the scope to make the first release more lightweight. I'll add them in the next one, thanks!
anivan_
·3 giorni fa·discuss
Yes, I want to cover RDS with all of its specifics as the next step.

Thanks for highlighting this!
anivan_
·3 giorni fa·discuss
Good points, thanks. On huge pages: this is also about RDS vs self-managed EC2 Postgres. RDS effectively has "on" by default, but default self-managed (that I benchmarked) is "try" which is effectively "off". I'll update the methodology page to cover that, and, yeah, it makes sense to cover that separately.

io2 is on my future-work list. And agree, I have the same feelings about IOPS.
anivan_
·3 giorni fa·discuss
I was initially inspired by the https://instances.vantage.sh/, so, like them, I want to add other providers later. Like Azure and GCP.

It would also be interesting to have cross-provider comparison. I think it's doable. Thanks!
anivan_
·4 giorni fa·discuss
Yes! This was my initial dilemma - whether to test RDS or self-hosted Postgres on EC2. I decided to start with EC2 to be a bit more "pure", and remove cost overhead of RDS.

But support for RDS is my next candidate for development. Plus, comparison would also be interesting.
anivan_
·4 giorni fa·discuss
Good point! I kept the configuration of the Postgres pretty close to the defaults, and it would be interesting to compare it with the same default Aurora Postgres.

And it should be easy to add - I'll check it, thanks!
anivan_
·2 mesi fa·discuss
I got frustrated seeing how system design questions differ from the real world, and how big tech companies foster a scalability-first mindset across the industry, while cost-efficiency and critical thinking about real product requirements are much more important.

I've checked Bitly public numbers and typical URL shortener interview question requirements. And I've benchmarked a simple implementation as much as possible across different hardware. My obscure NAS already handles 2540 writes/sec. The PostgreSQL setup on AWS does 15900. Both have 3 billion pre-filled rows. While the interview asks for 1160, the real systems have only 93 writes/s.
anivan_
·4 mesi fa·discuss
I got frustrated seeing how system design questions differ from the real world, and how big tech companies foster a scalability-first mindset across the industry, while cost-efficiency and critical thinking about real product requirements are much more important.

I've checked Bitly public numbers and typical URL shortener interview question requirements. And I've benchmarked a simple implementation as much as possible across different hardware. My obscure NAS already handles 2540 writes/sec. The PostgreSQL setup on AWS does 15900. Both have 3 billion pre-filled rows. While the interview asks for 1160, the real systems have only 93 writes/s.