TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: If you could, how would you set up Airbnb's servers from scratch

2 pointsby Delta0over 7 years ago
I'm running an alternative to Airbnb for the tech and crypto community (www.cryptocribs.com). Yesterday, after being live for just two months, my servers already crashed. It turned out that with only about 500 listings, I already ran out of the 20GB storage I used for the setup. I currently run the site on a basic Digital Ocean droplet (1GB/1CPU, 20GB SSD/ 2TB Transfer). Turns out that every listing is already about 50MB and this adds up quickly. To solve the data storage problem, I now resized my droplet a bit and also bought a 100GB attached volume. I am planning to do a NGIX alias redirect for the image files to store any new files in the extra volume. But I feel like there must be a better way to do this

3 comments

moondevover 7 years ago
I would move to aws, store assets in object storage (s3) instead of block storage (volumes), ensure your application is 12 factor and move it into an asg, move db to rds. Then start the process for moving from ec2 to k8s. That should give you a start.
评论 #15804354 未加载
评论 #15802575 未加载
评论 #15802571 未加载
danielvfover 7 years ago
I&#x27;m also going to really recommend putting images on Amazon S3 (or Google&#x27;s equivalent). If you get a good library to handle this, you can also get nicely resized thumbnails as well.<p>When using volumes, you are are going to constantly have to deal with mapping and rebuilding these as you grow. S3 is just set and forget.
评论 #15804331 未加载
cgoreover 7 years ago
I&#x27;m not sure what you&#x27;re doing that&#x27;s making each and every listing 50MB, that seems like a lot, are they posting lots of high-resolution images or something?
评论 #15802564 未加载