Launching your website

🟨 Slightly different to Blazor Server

After completing the development of your website, the final step is to launch it and make it available to your users. In this tutorial, we will cover the following topics:

  • What are publishing, deployment, and hosting?
  • Essential and optional services.
  • Cost estimates (as of 2023).
  • Key differences between Blazor WebAssembly and Blazor Server.

What are publishing, deployment, and hosting?

To make a website available, there are three essential steps: publishing, deployment, and hosting.

  • Publishing involves compiling your website into files that can be executed by the host machine's operating system, such as Windows or Linux.
  • Deployment involves copying the published files onto the host machine.
  • Hosting refers to the process of setting up the host machine and making it available on the internet.

It's worth noting that some hosting methods may combine these steps. For example, if you choose to host your website using Azure App Service, you'll only need to go through the publishing process, as Azure and Visual Studio will take care of the rest.


Essential and optional services

When preparing to launch a website, you'll need to consider several essential services:

  • Domain: This is the web address for your site. You can use a subdomain if you already have a domain. For example: blazorschool.com or mail.google.com.
  • Hosting Machine: This is the server that will execute the business logic of your website. Examples include a virtual machine, Azure App Service, or Azure Functions.

There are also additional services you may want to consider to enhance your website's functionality:

  • File Serving Service: This service helps you serve HTML, CSS, and JavaScript files at a low cost and high speed. Examples include Azure Static Web App and Azure CDN.
  • Database Storage: This service provides a place to store and manage your website's data. Examples include Azure SQL Database, Azure Cosmos DB, or a virtual machine.
  • SSL: This service helps to make your website secure and trusted.

Consider checking out NPipes not only do they provide Virtual Machines all over the globe, they also include free 360 Monitoring and SiteLock Website Security for your website.


Cost estimates (as of 2023)

To keep your website up and running, you'll need to pay for various services on a monthly basis. The cost of hosting a website can range from just a few dollars to thousands of dollars per month, depending on the type of website you have.

For static websites, the cost of hosting can be as low as a few cents to a few dollars per month. However, for dynamic websites that require more resources, the cost can increase significantly.

In general, Virtual Private Server (VPS) hosting and static web host are more affordable hosting options, while dedicated hosting tends to be more expensive. On the other hand, using Azure services can be more expensive due to the premium features and managed services that it offers.

It's important to consider your website's specific needs and budget when choosing a hosting service. Cost is one factor to consider, but other factors such as reliability, security, and customer support should also be taken into account.


Key differences between Blazor WebAssembly and Blazor Server

A Blazor Server website cannot be hosted using a static web host.

BLAZOR SCHOOL
Designed and built with care by our dedicated team, with contributions from a supportive community. We strive to provide the best learning experience for our users.
Docs licensed CC-BY-SA-4.0
Copyright © 2021-2024 Blazor School
An unhandled error has occurred. Reload 🗙