Powerd by dasBlog RSS 2.0
 Saturday, March 22, 2008

Both ScottGu and Scott have blogged about the IIS 7 Bit Throttling module for IIS, and it is available for download on iis.net (see this announcement by Vishal Sood). I had been looking past these announcements this past week and while looking for Scott's article on Twitter, decided to read thru his write-up of bit throttling.

The bit throttling module for IIS is just one of the first of many (assumed) modules to be released as add-ons for IIS. I think that you will also start to see community (they are probably already out there) and commercial modules for IIS. The modularity of IIS 7 is just starting to show off what it can do.

So what can you do with the Bit Throttling module? In Scott's post he shows off two demos. The first, shows what you get out of the box, and is similar to ScottGu's post. You can select a file type and set two options, fast start and throttle rate, and they differ slightly based on if you choose the Media or Data option.

Media

  • Fast Start (in seconds) - Download at full speed for the specified number of seconds
  • Throttle rate (as a percentage) - Download as a percentage of encoded bit rate

Data

  • Fast Start (in kBytes) - Download at full speed for the specified number of kBytes
  • Throttle rate (in kbps) - download the remaining data at the specified speed

So you get allot of functionality out of the box. This is extremely useful if you are streaming allot of video thru IIS, and want to manage your bandwidth better. The real power of this module can be shown (very simply) in Scott's second example.

Scott's second example extends the bit rate throttling thru custom code by implementing an IHttpModule. Scott notes that he wrote this in notepad and just dropped the .cs file into a App_Code folder where his media files were stored, how simple is that?

The demo shows how you can simply look at a query string value and toggle bit rate throttling. While simple, Scott goes on to explain how you could do a more complex handler in which registered users, or paid subscribers could get faster downloads.

Saturday, March 22, 2008 6:33:25 PM UTC  #    Comments [0] - Trackback
Review For Future Projects
Comments are closed.
Archive
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
Adam Salvo
Sign In
Statistics
Total Posts: 176
This Year: 0
This Month: 0
This Week: 0
Comments: 10
Themes
All Content © 2009, Adam Salvo
DasBlog theme 'Business' created by Christoph De Baene (delarou)