I recently got a new task to do: a web site with bugs which needs to be fixed and updated. This website was developed to meet millions of request in a few days. At first, it doesn’t seem like impossible to do. But the previous developers failed to fix the needs and when a million hit came, the server crashed.
My task here was to bring the updates of the site’s code to the required level in a few hours.
This web site backend was created with .NET MVC and no other structure was used.
I published this web site to Azure Web App (S1) and tested it by Load Test. The test was 20K users in 5 min to the homepage only. Here are the test results.
As seen from this report, 97% of 1.471.257 requests have failed.
When analyzing the details of reasons, I saw most of them are about the “static content”. So, I decided to move these contents to CDN (content delivery network) and a seperate storage and test it again. The tester sent 2.173.109 requests at the same time and 87% of them were successful.
Using “CDN” and a “separate storage” for “static assets” have very critical importance on web performance.
I hope this post has helped you.
Originally published at image4.io on May 7, 2019.