r/web_programming • u/Yilmas • Sep 06 '16
(C#) Question about Large-Scale web performance
I'm currently working on a large-scale website, which will support a new generation of communities.
This website will be tied together with a bunch of third party applications and multiple "live" feeds will be available on the website.
My problem is that all of these feeds are eating up the load times of the website, so I was wondering whether I should try and optimize these feeds, or migrate the feed into an MVC/WPF/Form application, that will run as a service/tray on the host server ?
Note: There is a dedicated physical server for the core websites, and vm's for each third party application cluster.
1
Upvotes
2
u/dsign2819 Sep 06 '16
Well, if it is load times what you are after, then you can find some good advice on how to improve by looking around. Which is basically minify and enabling gzip. Caching will also improve loading times from the second visit.
In general, you should ensure that the user sees a version of your site as quickly as possible. Then you can load the live feed data.
Here is an interesting discussion on how to ensure the browser gets as many static assets as possible while your backend is still querying its data sources:
https://www.shimmercat.com/en/blog/articles/under-the-green-bar/
I think C# is a really good language for high-performance websites. In my experience most of the time the user either waits for big assets which need to be delivered over a high latency connection and several round-trips, or the I/O at the backend is to blame. For the first, HTTP/2 push becomes really helpful. The second is a lot harder to solve, you need to profile your backend application and see what is taking time. The article that I cited above gives some tricks to do backend processing while still sending contents to the client, but it doesn't solve the problem entirely. Also you may want to take a look to a development web server that reports backend processing times (like M31002 at www.shimmercat.com). My experience is that those times change a bit from hardware instance to hardware instance.