Cloud Hosting: the Pros and Cons

Craig Buckler
Craig Buckler
Share
Cloud Storage for You and Your Business

This article is part of a series created in partnership with SiteGround. Thank you for supporting the partners who make SitePoint possible.

We’ve recently discussed two types of hosting service:
  • Dedicated Servers You own/rent one or more servers at your host’s data center for your sole use.
  • Shared Servers You rent space and processing capacity on a server which may also be used by many other companies and websites.
In general, a dedicated server is normally more flexible and you can configure it as you wish. A shared server may offer fewer options but is easier to manage and normally costs less. Cloud hosting can be a good compromise between the two and brings other benefits. Let’s discuss the terminology and concepts before we go any further.

What is the Cloud?

The “cloud” and “cloud computing” are marketing buzzwords for the web. That’s it. Rather than buying software and storing data on your PC’s hard disk, you use an online application. That typically runs and stores data on a web server while displaying the interface within a web browser. In other words, you’re accessing software on-demand and sharing computing resources with others. A web application can be hosted on a shared or dedicated server but scaling may become difficult. Perhaps the application works well with fifty concurrent users, but how does it cope with 1,000? How quickly could you migrate to a better service or server? What if user demand returned to normal levels after a few hours?

What is Cloud Hosting?

Cloud hosting allows resources to be rapidly provisioned on demand. You can quickly add further processors, RAM or disk capacity and hosts such as SiteGround
can automatically scale according to peaks in traffic.

Auto-scaling is a great option for short-term campaigns when you know you’ll have huge traffic while a particular event takes place. In these situations, additional resources will be automatically added when the traffic kicks in, so you won’t have to worry about it.

Technologies differ but most cloud hosts depend on virtual machines.

What is a Virtual Machine?

You have probably encountered emulators which recreate one computing device on another. For example, the Internet Archive allows you to play old arcade games
, run Windows 3.1 or an Apple Macintosh from your browser. It’s important to understand these are the original systems obtained from old disks and ROM chips — they are not faithful recreations. The hardware is being emulated. The legacy software may be saying “put this image on screen” — in the examples above, that instruction is intercepted by JavaScript, translated to HTML5 canvas code, and an appropriate response is returned. The software thinks it’s running on a compatible device. A Virtual Machine (VM) is a similar concept. Software such as VWware
, VirtualBox and Hyper-V emulate a PC on a PC using software-driven recreations of standard hardware. You can therefore run any guest operating system “within” any other operating system. Cloud hosts can therefore provide a virtual machine which is functionally identical to a dedicated server. However, they are simply data files emulating a real server so there are several practical implications:
  1. A virtual server can be created, installed and configured within seconds.
  2. The virtual server is just data. It can easily be cloned, backed-up, rolled-back, or moved elsewhere.
  3. Development and deployment is simplified. Developers, staging and production environments can use identical images. It’s easy to test and undo alternative configurations.
  4. A web application can run within it’s own virtual OS image. A second application can use another virtual machine; there is no risk of clashing or difficulties with differing technology stacks.
  5. Processing, RAM and storage are no longer tied to a real device. The VM can be deployed to a server farm which can automatically allocate resources as required.
  6. The risk of failure is greatly reduced because the OS is not running on real hardware.

Do All Cloud Hosts Work in the Same Way?

No. Most cloud hosts use some sort of Virtual Machine architecture but services can differ. For example:
  • Infrastructure as a Service (IaaS) Perhaps the closest to dedicated hosting, IaaS provides virtualization facilities but you choose your OS, install your software stack and keep it updated.
  • Platform as a Service (PaaS) Perhaps the closest to shared hosting, PaaS provides a specific platform for running particular types of application.
  • Software as a Service (SaaS) Typically on-demand software. For example, you could use a third-party service to store data rather than maintain your own MySQL installation.
  • Serverless or Functions as a Service (FaaS) An abstracted application environment which manages logic and state. You write functions or micro-services which use that architecture without having to worry about the underlying software.
Not all services fit neatly into one of these categories!

Cloud Hosting Pros and Cons

My previous articles examined ease of use, flexibility, capabilities, safety and security when comparing dedicated servers with shared servers. These are less relevant to cloud hosting because the service will determine those factors. For example, cloud hosting can be as difficult as an unmanaged dedicated server or easier as the simplest shared server solution. It’s up to you. This leaves us with three other metrics…

Performance

A cloud host can automatically allocate resources as traffic increases although it will depend on your host and service plan. Some may apply specific limits although it is usually possible to upgrade the number of CPUs, RAM and disk space. Hosts such as SiteGround
can apply new limits without a reboot.

Reliability

Dedicated and shared servers fail. Hosts take precautions to minimize risk but an overheating CPU or disk corruption can bring the system down. Cloud services have less dependency on real hardware. Processing can be shared across multiple servers; failures still occur but your website or application remains active.

Cost

Cloud hosting is often compared to a utility such as gas, electricity or water: you pay for what you use. The reality is usually more complex and pricing incurs a mixture of fixed and variable-rate charges. Your monthly payment could differ considerably from month to month.

Who Should Choose Cloud Hosting?

Long term, I suspect cloud hosting will replace both shared and dedicated server plans. Everyone will use a cloud service whether they’re aware of it or not. That said, the cloud hosting industry is in its infancy. The variety of services is growing exponentially and the market changes on a daily basis. Choosing the right plan for your business can be difficult when services are not directly comparable and costs are unknown until you start hosting. Some hosts pitch cloud services mid-way between shared and dedicated hosting plans. Perhaps that’s the best option at the current time. Consider a cloud service as you move beyond the limits of shared hosting.

Frequently Asked Questions about Cloud Hosting

What are the main advantages of cloud hosting?

Cloud hosting offers several advantages over traditional hosting. Firstly, it provides scalability, allowing you to easily increase or decrease your resources based on demand. This flexibility can save you money as you only pay for what you use. Secondly, cloud hosting offers high availability and reliability. Since your data is distributed across multiple servers, if one server fails, your website won’t go down as the load will be shifted to other servers. Lastly, cloud hosting can provide better performance and speed as it uses multiple servers to deliver content.

Are there any disadvantages to cloud hosting?

While cloud hosting offers many benefits, it also has some potential drawbacks. One of the main concerns is cost. While you only pay for what you use, costs can quickly add up if your website receives a lot of traffic or if you need a lot of storage. Additionally, there may be potential security risks. While most cloud hosting providers offer robust security measures, the fact that your data is distributed can potentially make it more vulnerable to certain types of attacks.

How does cloud hosting compare to traditional hosting?

Traditional hosting typically involves renting space on a single server. With cloud hosting, your website is hosted on a network of servers. This provides greater flexibility and scalability, as you can easily adjust your resources based on demand. However, this can also make cloud hosting more expensive than traditional hosting, especially for websites with high traffic or storage needs.

Is cloud hosting suitable for all types of websites?

Cloud hosting can be a good option for many types of websites, especially those that experience variable traffic. For example, e-commerce sites, news sites, and social media sites can benefit from the scalability of cloud hosting. However, for smaller websites with consistent traffic, traditional hosting may be more cost-effective.

What should I look for in a cloud hosting provider?

When choosing a cloud hosting provider, consider factors such as cost, scalability, security, and customer support. Look for a provider that offers flexible pricing plans, robust security measures, and 24/7 customer support. Additionally, consider the provider’s reputation and read reviews from other customers.

How does cloud hosting impact website performance?

Cloud hosting can improve website performance by distributing the load across multiple servers. This can result in faster load times, especially for websites with high traffic. Additionally, if a server fails, your website won’t go down as the load will be shifted to other servers.

Is cloud hosting secure?

While cloud hosting can potentially be more vulnerable to certain types of attacks, most providers offer robust security measures to protect your data. This can include encryption, firewalls, and regular backups. However, it’s important to understand the provider’s security measures and policies before choosing a cloud hosting service.

Can I switch from traditional hosting to cloud hosting?

Yes, it’s possible to switch from traditional hosting to cloud hosting. However, the process can be complex and may require technical expertise. It’s important to plan the migration carefully to minimize downtime and ensure that all data is transferred correctly.

How does pricing work for cloud hosting?

With cloud hosting, you typically pay for what you use. This means that costs can vary based on your resource usage. Some providers offer pay-as-you-go pricing, while others offer tiered pricing plans based on resource limits.

What is the future of cloud hosting?

The future of cloud hosting looks promising, with continued growth expected in the coming years. As technology advances, we can expect to see improvements in areas such as security, performance, and scalability. Additionally, as more businesses recognize the benefits of cloud hosting, demand for these services is likely to increase.