Hacker News new | past | comments | ask | show | jobs | submit login

I have an ancient website I have been maintaining since 2001 that has all it's static assets and images as blobs in MySQL.

Cloudflare and some good headers make it not a terrible option.

The site it self is basically a historic artifact at this point. I probably would never build a site that way again but with foreign keys it has some major upsides when it comes to maintaining data consistency between posts and associated images and files.




Why would you never build a site like that again? If you were to build something similar today, how would you build it?


I'd almost certainly have all my static content in S3 or an S3-like store and just put the address in the database. Treat the data as largely immutable. Don't delete anything unless we have good reason to.

This is how we generally do things where I work now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: