Tuesday, July 28, 2009

IIS Performance

Yesterday we had a little debate in the office about the max number or requests IIS can handle per second. So I did a little research and found that majority of the people are not able to go higher than 300-600 requests/sec, however some claim they were able to get 20000 req/sec. I guess it depends on how much processing work your request does i.e. if IIS is simply returning a HTML page or if it processes ASP.NET page doing authentication, making database requests and constructs the HTML page at the end.

Anyhow, I discovered that IIS 7  has some interesting features wich I was not aware of http://blogs.iis.net/bills/archive/2007/05/07/iis-vs-apache.aspx. I especially like the one that allows you to Troubleshooting Failed Requests Using Tracing in IIS 7.0 http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis-70/.

-=Oleg=-

Tuesday, July 14, 2009

Silverlight Styling

Changing the styling of the Silverlight controls is simple. It’s somewhat similar to CSS, but it's more robust and syntax is completely different. What is different in Silverlight and WPF is that you can completely re-define control’s UI and behavior using styles. It took me about 20 minutes from absolute zero to the “Aha!” moment and become an expert in styling WPF and Silverlight applications. Here are the 3 links that helped me to clear the mistery behind Silverlight styles:


1.       Using Style Elements to Better Encapsulate Look and Feel – a good example of how to change control’s properties using styles


2.       Using Control Templates to Customize a Control's Look and Feel – a step further that shows how to make control look anyway you want. In other words how to draw control’s UI from scratch or combine several controls into one. All using styles! Pretty amazing yet simple.


3.       MSDN: Customizing the Appearance of an Existing Control by Using a ControlTemplate – the final piece of puzzle is about how to make control to react on events like Pressed or Disabled and change its appearance. Just few more words about this. Basically every control has a list of pre-defined events (they called states in Silverlight) which can be referenced by ControlTemplate. The list of states differs for each control. This information is available in MSDN on control’s Class page as a list of TemplateVisualStateAttribute attributes applied to the class.


-=Oleg=-

Friday, July 10, 2009

Silverlight 3 has been released

Long awaited Silverlight 3 has been released. Here is the download link:

http://www.microsoft.com/silverlight/get-started/install/default.aspx

New features:
  • Media: New codec support (H.264, AAC, MPEG-4), raw bitstream Audio/Video API, and improved logging for media analytics

  • Graphics: GPU Acceleration and hardware compositing, perspective 3D, bitmap and pixel API, pixel shader effects, and Deep Zoom improvements

  • SEO: Deep linking

  • Application development: multi-touch support, 60+ controls available, and library caching support

  • Data: Data-binding improvements, validation error templates, server data push improvements, binary XML networking support, and multi-tier REST data support

  • -=Oleg=-