Friday, March 9, 2012

Lots of changes have been made the past few days

It has been a busy week for todayamerican.com because I have been doing a lot of work on it in my free time. I wanted to first improve the performance so that ever the most demanding users can enter our pages in less than 10 seconds or 5 seconds as it used to before. Google says that users change their behavior even if there is a 250ms difference in a web page speed.

Not easy.

I had to go back and add caching everywhere to begin with, then once that was done, I had to go back and make sure that I cache a web page before you request it. So if you are on page 1, page 2 is cached and ready to be served by the time you request for it. Then I modified the Entity Framework to use inner joins instead of the way I was doing it earlier.

After all this was done, and the main site got faster, I have also reduced the size of the database, so we don't store more than a months worth of articles at any point of time, making it much faster to search it, whenever a user hits us.

The last change was to optimize the feeds page. If you register and login, we give you a url from which you will always get only fresh articles. This is done by tracking what is being downloaded. This was slowing down the RSS URL because of the database updates. This logic has now been made asynchronous so that, it loads faster.

More changes are coming. I am going to try and make sure that even if you don't login, our articles do not repeat when you browse it from any specific computer. That is what the original premise of todayamerican.com was always about - not to have to keep going through pages of articles already read. You can do that through the RSS feed right now, but I want to do it for the main site as well. This is so difficult to do, that is why no-one has done this before.

Please keep encouraging us by browsing our site. With customized pages for Mac, iPad and iPhone, we give you the best experience of reading tech news on any platform.

Remember, by the time you read the news on our site, it has been gathered from all over the internet, graded for being the most interesting, and we "digg" the article for you before hand.

No comments:

Post a Comment