Roadmap › Networking & Hosting — How a Website Works, End to End › Module: Infrastructure Between the User and the App
Lessons in this course (12)

10. Hosting options — shared, VPS, dedicated, cloud PaaS, containers, serverless

Intermediate★ Must knowLesson 10 of 12
OptionYou manageGood forExamples
Shared hostingOnly your filesSmall sites, low budgetGoDaddy/Hostinger Windows plans with Plesk
VPS / virtual machine (IaaS)OS, IIS/Nginx, patches, runtime, appFull control, legacy appsAzure VM, AWS EC2, DigitalOcean
Dedicated / on-premises serverEverything incl. hardwareCompliance, factories, intranetsCompany data centre
PaaS (platform)Only the app + configMost web apps and APIsAzure App Service, Elastic Beanstalk, Heroku
Static hosting + CDNJust static filesSPAs, documentation, marketing sitesAzure Static Web Apps, Vercel, Netlify, GitHub Pages
ContainersImage + orchestration configMicroservices, portabilityAzure Container Apps, AKS, ECS, Cloud Run
Serverless functionsFunction codeEvent-driven, spiky workloadsAzure Functions, AWS Lambda, Vercel Functions

Trade-off: the less you manage, the less control you have — but also less patching, scaling and security work. A typical .NET stack today: React/Angular on Static Web Apps or a CDN, API on App Service/Container Apps, Azure SQL Database, Key Vault for secrets, Application Insights for monitoring.

Scaling: vertical (bigger machine) vs horizontal (more instances behind a load balancer — app must be stateless). High availability: multiple instances across availability zones, health checks, database replicas, backups and a tested restore.