• traffic peak article cover

    Preparing Your Website for High Traffic during Peak Season

    With the holidays coming up, a lot of businesses expect a surge in sales. And as ecommerce is getting more and more popular, a lion’s share of them will be done online.

    An influx of new visitors is a great thing. Every single one is a potential new client! 

    That being said, are you sure your website can handle the new traffic? While the holiday season is a big opportunity to reach customers online, your website being down or loading slowly can greatly impact the bottom line. 

    Online, everyone is in a hurry.  Your customers are used to content appearing at lightning speeds. And with such a variety of businesses online, there’s no point in waiting for your website to load. Here are some stats from CXL:

    • 57% of users will leave a website if doesn’t load in three seconds;
    • Furthermore, 47% of users expect a website to load in less than two seconds;
    • A delay of just one second in loading can lead to a 7% loss in conversions, and a 16% decrease in customer satisfaction;
    • 45% of people say they are less likely to make a purchase when a website loads slower than expected.

    Now that we know why a fast response time is important, let’s talk about how to prevent crashing and lagging.

    In this guide we’ll walk you through a process of preparing your ecommerce website for a high traffic – be that due to the traditional holidays, your industry’s specific busy period or just unexpected spikes. You’ll know exactly how to anticipate the traffic increase, and what to do about it. For the purpose of this article we’ll focus on Magento websites, but the same rules apply to other platforms as well – Shopware, Shopify etc.

    Step 1: Determine how much traffic can your website handle and how many visitors can you expect

    Do you know how many visitors at once can your website handle?  If you don’t, your first step of preparing for traffic spikes is to find out. The amount of traffic an online storefront can handle is largely determined by your hosting platform and the plan you chose. It can also depend on site content and number of pages. Another way to test your website capacity is to hire a development team for a website audit

    If your website is new and doesn’t get many visitors, assume that the traffic can be 30 times bigger than your daily average. If your website is more popular, peak traffic can be up to 5 times bigger than your daily average. 

    In case you already have information from previous traffic spikes, use it as an approximate number.

    Step 2: Learn to predict spikes in traffic

    Using your website analytics, figure out the times when your website audience was at its highest. Can you tell what could be the reason for it ? Usually, a pattern emerges. Your spikes can coincide with a promotion you were having, or a specific event. Note every spike and a potential reason for it down, and then add other events that can cause them to happen, like national holidays. 

    Now when you see a potential surge in traffic coming up, you can reassess your website to keep it in top condition. 

    Step 3: Test your website

    It’s good to have a general idea of your website’s maximum capacity, but it’s also worth checking it in practice. 

    With your predicted resource model for peak season, load test your infrastructure to see how your website will handle the expected traffic. For Magento specifically, it’s worth reviewing  Adobe’s recommendations on load testing. 

    It is pretty common for this test to show several deficiencies. Be sure to document them, and work with your development team on developing a plan to fix all the issues. 

    Step 4: Reassess your hosting

    As we said previously, the amount of visitors your website can handle is largely dependent on your hosting. 

    If you realized your hosting can’t work with the amount of visitors you’re expecting, consider upgrading it.  

    If you are using a shared hosting plan, switching to a VPS or a dedicated hosting account might be worth it.  Shared plans are not equipped to handle high traffic, and your provider can penalize you if you often use more than your allotted share. Other websites in your cluster being overloaded can also impact how well your website performs (and during the holiday season it’s almost guaranteed to happen).  

    In case you’ve decided to upgrade your hosting, look for plans with bigger RAM and bandwidth, and don’t forget to pay attention to the average page load speed. Some providers offer pay-as-you-go servers, allowing you to increase your servers capacity only for a needed period of time. 

    shared hosting, dedicated hosting and vps hosting comparison chart
    A comparison between different hosting types

    For websites with a large number of daily visitors expecting an even bigger influx, a virtual private server (VPS) can be a good solution. In VPS hosting, a server is divided into multiple virtual environments. Each of them acts as a separate, independent server, and the number of websites that share the same server is much smaller than in a shared plan. 

    With a dedicated server, your website has an entire physical server to itself, which can be perfect for extremely popular ecommerce sites. 

    In any case, leading up to a peak season contact your hosting provider. Notify them of the potential spike in traffic, and ask if they can scale up the capacity in advance. Your hosting provider can also recommend the tools they have available to deal with the higher level of traffic. 

    Step 5: Use a Content Delivery Network

    A VPS or a dedicated server alone isn’t enough to guarantee your website will work fine, especially if it’s content-heavy. Another way to prepare for the optimal peak season performance is to use a content delivery network (CDN). 

    Generally, all site content is stored on a main server in a specific location. If the location is near where the majority of your users are, you have nothing to worry about. But if your visitors are spread around the world, or don’t live where your servers are located, it can affect the speed at which your content can reach them. The further away a visitor is from your server, the longer it will take for a website to load. 

    A content delivery network is a group of geographically distributed servers that work together to speed up the delivery of web content by bringing it closer to where the user is located. It creates a global network of your files to increase response time, by delivering the data from the location closest to each visitor. With a CDN your website is guaranteed to load fast regardless of the user’s location. 

    Using a CDN during peak season can help your website adapt to the increased traffic, improve security, reduce hosting bandwidth and prevent interruption in service. 

    If you are not sure if you need a CDN, try testing how quickly your website loads in different areas of your key markets. Relatively similar loading time shows that your website is already equipped to deal with users from different locations. 

    There are many CDN options out there, but if your website is running on Magento and using Adobe Commerce, you have access to the Fastly CDN. 

    Step 6: Optimize your website

    Now that you’ve upgraded your hosting and implemented a CDN, it’s time to work on your ecommerce platform. 

    Pages with a lot of scripts or media are always the slowest to load. Therefore, one of the most effective ways to make your website work better is to make your page design simpler.  If your website requires a lot of different elements you’ll have to take additional steps to make sure it functions well:

    Optimize all images

    Images are essential to showcase your product to the customer, but a lot of websites suffer from slow load times due to images being managed improperly.  If your website has a lot of images, make sure to compress them using an image optimizer.  Alternatively, upload images at their intended display size instead of resizing. 

    Install a Caching Plugin

    Caching is an important part of improving your website speed. Designated plugins can ease the traffic pressure by ensuring that the content is rendered as quickly as possible. Some plugins also give you an option to compress HTML, JavaScript and CSS files. 

    Reinforce your security

    With the start of the peak season, the possibility of hacker or DDoS attacks increases as well. Organize a website security test a few months before an expected traffic spike to have time to fix any issues that arose. 

    Clean up your scripts

    Clean up scripts by removing unnecessary or redundant data. This process is called minification, and it’s one of the main methods used to reduce load times on websites. It’s also beneficial to clients accessing your website through a limited data plan because it helps to save their bandwidth usage.

    Minimize plugin use or choose plugging that are lightweight

    If your website has a lot of plugins installed, chances are they influence your load speed. Test to see what plugins cause the most trouble when loading, and determine if you really have a need for them. 

    Find and fix dead links (404 Errors) and avoid using redirects 

    Both redirects and dead or broken links can impact your website performance.  For example, if a visitor clicks on a link that has been redirected to another page, then the browser must create additional requests to get the needed content. This results in extra round trips between the browser and a server which increases loading time. 

    Back-up your website

    Take care of the proper back-up management to prevent a time-consuming rollback. For Magento users, a Snapshot allows you to back up specific environments at any time. Since Adobe Commerce environments deploy as read-only files, a restoration through Snapshot brings your environment back quickly.

    Keep mobile users in mind

    As you implement these design changes, be aware that the experience of customers browsing your website from mobile must be smooth as well. Page speed matters even more to mobile visitors, as they usually won’t switch to a different tab waiting for a page to load. 

    With every change you make be sure to pay attention to mobile version loading speed. 

    Step 7: Develop an On-Call Schedule

    Even the most sophisticated and stable solutions can require human intervention from time to time. To provide the best experience for your customers, you have to make sure there’s always someone available to respond to emergencies. As a lot of shopping is done during evening hours (with prime time around 8 to 10 p.m.), you have to establish a rotating schedule for someone to be on call 24/7. 

    Final thoughts

    We hope that now that you know what to do to prevent your site from crashing  because of traffic increases. You should be fully ready for the holidays or any other major event that influences the number of visitors to your website. 

    Remember, implementing these recommendations doesn’t take a lot of time, but should be high on your priority list to ensure your clients will get a smooth experience on your website. The work will for sure pay off!

    If you need further help on this topic, we’ve got you! Just contact us, and our team of developers will help you make sure you are ready for any traffic spikes.