Automatic scaling was not an option in this case
The site was quite demanding in terms of computing resources, so the first step was to see where we could optimise it. We found a few requests that were being sent unnecessarily and could be skipped. We also optimised the content management system cache and added a static content cache.
In the past, automatic scaling in response to the use of available computing resources did not help the situation. By the time the environment scaled up to the required performance, the prints had already sold out. The advantage is that the client knows in advance when new prints will be released. The environment can then be prepared for the expected load. The servers are ready and waiting for the sale to start.
Once we increased the e-shop’s throughput, the bottleneck moved to the payment gateway provider, which was also unable to cope with the number of requests in such a short time frame. Together with the e-shop developers and TrustPay technical support, we identified and resolved the problematic interactions between the e-shop and the gateway.