Types of server hosting

There are lots of ways we can host a website, or other program.

Shared server nodes

often, for small sites, a company or person will rent some space of a server from a hosting company, and then their files will be hosted on that server, which also hosts many other websites for other people at the same time.

Dedicated server nodes

Sometimes, dedicated servers are used, which means that the company or person has the whole server to themselves, and they don’t have to share it with anyone else. This is much more expensive though and often, you need to manage the server yourself.

Cloud delivery networks

Certain companies provide something called a cloud delivery network (or CDN as you might have heard it). That’s where you have a network of servers all around the world, and when a user tries to access your website, the CDN that’s nearest to the user will respond to that request.

This website is hosted on a CDN! That’s why, assuming your internet connection isn’t absolutely terrible, it should load within about 1/20th of a second (or 50 milliseconds) from anywhere in the world - assuming you’re not really really far from the nearest cloudflare server, which is the CDN that I use.
The reason it loads so fast is also partly because there’s no annoying Javascript on this website, and the HTML files are very small, so they can be sent to your browser very quickly. Basically all HTML files on the site are less than 5KB in size (10KB for some of the long articles), and the entire website can be loaded with just that file - so 5KB, if you’ve visited another page.

flashcards

QuestionAnswer
What is a shared server node?A hosting setup where multiple websites are hosted on the same server by a hosting company, typically used for small sites.
What is a dedicated server node?A hosting setup where a company or person has the entire server to themselves, which is more expensive and often requires self-management.
What is a Cloud Delivery Network (CDN)?A network of servers distributed around the world; when a user accesses a website, the nearest CDN server responds to the request.
What are two advantages of using a CDN?Faster data delivery because data travels a shorter distance; it provides redundancy, so if one server goes down, other servers can still respond.
What is a limitation of hosting on a CDN?Only static sites can be hosted on a CDN.
What is a static site?A site that contains a set of pre-existing files (e.g., HTML, CSS, Javascript) and does not rely on a central server to generate files upon request.