Migrating your organisation's infrastructure to the cloud can transform the way you manage your applications and servers. It can feel daunting, but the benefits far outweigh the cost of sticking with traditional infrastructure.
As traffic rises, the application needs more bandwidth, memory and processing capacity, and the hosting has to respond to that demand. Auto-scaling infrastructure does that automatically. Instead of calling out engineers or accepting downtime, you get hosting that adapts and is available when you need it.
Cloud and on-premises hosting
Cloud servers host applications off-site as Infrastructure as a Service (IaaS). Organisations reduce maintenance and energy costs and can still scale resources when needed. If your website sees large traffic spikes, the cloud gives you access to near-unlimited processing power quickly.
On-premises environments keep and run all resources within an organisation's own infrastructure. This has long been the traditional approach, and it offers a sense of security and control at a substantial cost. If you've ever had to add an on-site server to handle more traffic, you'll know that cost. When you need flexibility, extra on-premises capacity doesn't stack up financially against the cloud.
Vertical scaling
Manual vertical scaling has traditionally been the backbone of on-premises infrastructure. Also called scaling up or down, it reduces bottlenecks caused by limits in CPU (processing power), RAM (memory) and disk space (storage). Upgrading those components used to be slow and costly. Cloud vertical scaling has changed that, but it can still involve downtime, which you'll want to avoid.
Horizontal scaling
Cloud horizontal scaling automatically adds servers and spreads the load so no single server is overloaded. Also called scaling out or in, it relieves the strain a traffic spike would otherwise put on performance. It's far quicker, and much more cost and time efficient, than on-premises or traditional vertical scaling, which matters when uptime is critical to serving customers well.
Streaming services show why. Evening viewing needs a huge amount of memory, processing power and bandwidth, but only for a short period. Instead of buying and maintaining that capacity all day, streaming companies scale out horizontally and pay for the spike only while it lasts. Doghouse SaaS works the same way, using the underlying hosting infrastructure to track and adjust to demand, so capacity rises for a spike and drops back once it's passed.
Decide what has to keep working
Autoscaling is only useful if it keeps the service working for people. Before relying on it, test it against a journey that matters during a busy period. For a council site, that might be a resident looking up a service and submitting a form. Agree what counts as success: an acceptable response time, an acceptable error level and a completed submission.
Test the journey in an authorised environment with suitable test data. Reading a cached information page and submitting a form exercise different parts of the system, so record them separately.
Increase demand in steps and hold each step long enough to see how the system reacts. Watch completed journeys and failures alongside resource use. Then reduce demand and watch what happens as capacity is removed. AWS's load testing guidance separates tests for maximum capacity, a specific expected load, scaling up and down, and sustained load. Choose the one that answers your question.
Find the resource that actually limits the service
A scaling rule needs a useful signal. Depending on the workload, that might be processor use, the number of requests in flight or queued work. Ask the technical team to show how the signal changes as demand increases, and whether adding capacity improves the result.
If the journey stays slow after more application capacity is added, look at the database, the search service and any external integrations. Adding web servers won't fix a bottleneck somewhere else.
Ask when new capacity becomes useful
Record when extra capacity is requested and when it's actually serving users. They're separate moments: new servers take time to start, and their start-up activity can distort the metrics that drive scaling. AWS EC2 Auto Scaling, for example, has an instance warmup setting so a new instance's start-up usage doesn't trigger unnecessary scaling. The equivalent controls depend on the hosting technology.
Take these questions into your hosting review:
- Which signal triggers a change, and how was it chosen?
- What minimum and maximum capacity have we agreed?
- What happens while new capacity is getting ready?
- Which dependencies were included in the test?
- What happens when capacity reaches its limit?
- Who receives an alert and makes the next decision?
- What did the busy period cost, and did capacity return to normal as expected?
Keep the results with the service's operating plan. They give the next conversation about traffic a useful starting point.
Other benefits of auto-scalable hosting
- Lower hosting costs. Instead of paying for capacity to cover possible spikes, auto-scaling sizes up and down to meet demand. Once the spike has passed, capacity and cost return to the baseline.
- Rapid reaction to traffic spikes. Dynamic auto-scaling gets you to the capacity you need quickly, rather than facing hours or even days of downtime.
- Environmental benefits. Unused servers can be switched off during quiet periods, reducing energy use and cost.
- Fewer server interruptions. Spreading requests across multiple server instances means each one handles fewer requests and responds to spikes more steadily, reducing the risk of downtime. That's especially important if you run multiple websites.
- Less administration. Auto-scaling cuts server maintenance and admin work, so your team can spend time on higher-value tasks.
- High availability and self-healing. Under normal conditions, at least two web server containers are running at all times. If one fails, the other carries on (with more load) while another container starts automatically, so the website keeps running.
Security and resourcing
Security and resourcing are the two concerns we hear most about moving to auto-scalable hosting. They may be less of an issue than you expect.
Because a third party manages the infrastructure, data security and integrity top many organisations' list of concerns. Tier 1 hosting providers such as Amazon Web Services (AWS) keep hosted data in separate containers within a single platform and protect it with several layers of security, including encryption and firewalls. Data stays accessible as the infrastructure scales. For most major economic regions, including Australia, the United States and Europe, data can stay in its country of origin, which protects data sovereignty.
Others worry about moving such a critical part of their infrastructure, and about having enough people to manage it afterwards. The initial move does need some resourcing, though with the right partner it may take less than you think. After that, ongoing maintenance and management are automated, which frees staff to focus on work beyond maintaining the hosting environment.
How Doghouse SaaS scales
Doghouse SaaS is an open source government platform that auto-scales. It's built to streamline government content management, and it integrates with our own engagement platform, Civio Engage, as well as other engagement platforms.
Doghouse SaaS is hosted on Amazon Web Services, with Amazee.io's Lagoon as an intermediary layer. Together they let you build secure websites and applications that scale with demand.
- Doghouse SaaS is the platform layer that brings it together.
- Lagoon (Amazee.io) is the WebOps platform that monitors demand and reacts to traffic spikes.
- AWS is the infrastructure (IaaS) that provides the capacity.
Partnering with Doghouse gives you secure, well-managed hosting.
See how auto-scaling can work for you.
Tell us about your busiest period and we'll talk it through.