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 optimize it. We found a few requests that were being sent unnecessarily and could be skipped. We also optimized 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, it was already sold. The advantage is that the client knows in advance when new graphics will be available. The environment can then be prepared for the expected load. The servers are ready and waiting for the sale to start.
After increasing the e-shop’s flow, we passed the problem on to the payment gateway provider, who 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.