473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

HTTP Modules & Handlers or ISAPI?

PCC
I need to be able to redirect web requests from certain parties to specific
content. In the old days I would have used ISAPI to do this. Now days I am
wondering if I should be doing this using HTTP Modules & Handlers or ISAPI.
All the machines are running IIS6 and have the .NET framework installed. In
the end I would like to code in C# but am concerned about the performance
cost of using HTTP Modules & Handlers over that of just using ISAPI. On
thing I thought of was using ISAPI and then just called code I have written
in C#, but then I have the performance hit of marshalling.

Would you please share your thoughts here? What is the best and fastest way
to do this (in any language)? What is the best and fastest way to do this
using C#, and how bad will the performance hit I take be? Any suggestions,
articles, links, samples, etc. would be greatly appreciated. Thank you.
Nov 17 '05 #1
3 1255
Hi,

I think HTTP handlers are the managed way to go. They of course will be
little bit slower than properly designed ISAPI, but since they are compiled
into managed code, I don't think there will be performance penalty.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"PCC" <pc*****@hotmail.com> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl...
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using HTTP Modules & Handlers or ISAPI. All the machines are running IIS6 and have the .NET framework installed. In the end I would like to code in C# but am concerned about the performance
cost of using HTTP Modules & Handlers over that of just using ISAPI. On
thing I thought of was using ISAPI and then just called code I have written in C#, but then I have the performance hit of marshalling.

Would you please share your thoughts here? What is the best and fastest way to do this (in any language)? What is the best and fastest way to do this
using C#, and how bad will the performance hit I take be? Any suggestions, articles, links, samples, etc. would be greatly appreciated. Thank you.


Nov 17 '05 #2
PCC,

If you want the ultimate in performance, then you will probably want to
use an ISAPI dll. While I won't comment on whether or not C++ is faster
than C# (that's for another time), you will not have the overhead of the
marshaling of information from the managed to the unmanaged world.

However, I would generally consider this to be an acceptable hit in
order to take advantage of the framework. I would use HTTP Handlers and
Modules (you would use a handler for what you are doing).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"PCC" <pc*****@hotmail.com> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl...
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using HTTP Modules & Handlers or ISAPI. All the machines are running IIS6 and have the .NET framework installed. In the end I would like to code in C# but am concerned about the performance
cost of using HTTP Modules & Handlers over that of just using ISAPI. On
thing I thought of was using ISAPI and then just called code I have written in C#, but then I have the performance hit of marshalling.

Would you please share your thoughts here? What is the best and fastest way to do this (in any language)? What is the best and fastest way to do this
using C#, and how bad will the performance hit I take be? Any suggestions, articles, links, samples, etc. would be greatly appreciated. Thank you.

Nov 17 '05 #3
PCC
Thanks you guys. I feel better knowing that others think I should use C#
and the framework. I was terrified that people in my shop would be shocked
that I had not used ISAPI. Thanks again.

PS - Nicholas Paldino, I swear you have answered at least fifty of my posts
over the years. Thank you for your contribution.

"PCC" <pc*****@hotmail.com> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl...
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using HTTP Modules & Handlers or ISAPI. All the machines are running IIS6 and have the .NET framework installed. In the end I would like to code in C# but am concerned about the performance
cost of using HTTP Modules & Handlers over that of just using ISAPI. On
thing I thought of was using ISAPI and then just called code I have written in C#, but then I have the performance hit of marshalling.

Would you please share your thoughts here? What is the best and fastest way to do this (in any language)? What is the best and fastest way to do this
using C#, and how bad will the performance hit I take be? Any suggestions, articles, links, samples, etc. would be greatly appreciated. Thank you.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PCC | last post by:
I need to be able to redirect web requests from certain parties to specific content. In the old days I would have used ISAPI to do this. Now days I am wondering if I should be doing this using...
5
by: Chris Hughes | last post by:
I have an environment with many thousands of client machines uploading data files several times each day to a web server via HTTP PUT. To avoid disk I/O (for performance), I am implementing a...
3
by: Steven Livingstone | last post by:
Hello all. I have a class that modifies the response sent to a user, but it works as far as the ReleaseRequestState event and not in the UpdateRequestCache event. So two questions : 1....
2
by: Norton | last post by:
I understand how to create HTTP modules that can be used to add functionality to a website but there are a few things I don't understand. If I create an HTTP Module and I want it to intercept a...
2
by: Norton | last post by:
I had a person tell me the other day that a person would not be able to beat the efficiency of an ISAPI dll, especially by using handlers/modules. Of course, they could only say the reason was that...
9
by: Tim Payne | last post by:
If I were writing an HTTP module where I wanted to access the response text that was being sent back to the user, what would be the optimum method for doing this within the module? I'm...
5
by: Shaun | last post by:
Hi, I'm trying to implement an http handler that will redirect requests made for specific folder which don't exists. Currently my handler gets called if i request a non existing file but if i...
7
by: John Murtari | last post by:
Folks, We would like to upgrade our servers to PHP 5 and PHP 4 together as modules on the same server (not as cgi, not passing requests to another server). I did some extensive searching on...
9
by: Andy Fish | last post by:
Hi, I am wondering if there is any way to log the HTTP traffic on an IIS server (including headers but preferably the body as well), either at the IIS or asp.net level I know I could write my...
3
by: Ramesh | last post by:
Hi, I am trying to create an array of pointers to member functions inside my class. When I created a global array of type pfn & initialized with member functions and copy it back to the member...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.