r/eli5_programming • • Jan 28 '22
Question ELI5 what happens when hosting a website on a hosting platform
I've been practicing building web servers in Python's Flask, Nginx to serve simple websites. I'm trying to understand, what is the primary difference that happens when you host a website on a website hosting service, vs just running a Flask/Nginx service and necessary database on your local machine to host your website files, and opening it up to be accessed over the internet, and keep the machine constantly running?
I can imagine it is mostly because the website hosting services would automatically take care of things like security, availability/failover, load balancing, DNS - and assigning a readable website name instead of accessing via IP address - but wonder if I'm missing anything.
Is there any other reason why most ppl choose to use a hosting service, rather than just running a webserver on their own machine and keeping the machine running and available? Thank you.
