473,386 Members | 1,710 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,386 software developers and data experts.

Implement Web Application as httpModule?

I'm implementing a web application whose purpose in life is to act as a data
conduit. Data is posted to my Web app in XML format, my application examines
the data and forwards it onward by posting it to the appropriate upstream
server.

Since transaction processing is largely identical regardless of the
transaction details (these will be handled by an upstream sever) I'm
thinking of implementing my application as an HttpModule. But I'm wondering
how this will work in terms of scalabiliy. If I understand the httpModule
architecture, there is only a single instance created to service all
transactions, even if several aspx page instances are created to handle
concurrentt page requests. If this is correct, will my proposed application
architecture destroy scalability by serializing all calls through the single
httpmodule instance? Or am I completely off base with this concern?

Thanks for your advice!

Joseph Geretz
Aug 27 '08 #1
3 1822
Depending on what you are trying to accomplish, I think you might look at
BizTalk, as it has the message bus and orchestration funcationality you are
describing in this post. You already have the multithread issues solved with
BizTalk and it talks in XML.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"Joseph Geretz" <jg*****@nospam.comwrote in message
news:eC**************@TK2MSFTNGP03.phx.gbl...
I'm implementing a web application whose purpose in life is to act as a
data conduit. Data is posted to my Web app in XML format, my application
examines the data and forwards it onward by posting it to the appropriate
upstream server.

Since transaction processing is largely identical regardless of the
transaction details (these will be handled by an upstream sever) I'm
thinking of implementing my application as an HttpModule. But I'm
wondering how this will work in terms of scalabiliy. If I understand the
httpModule architecture, there is only a single instance created to
service all transactions, even if several aspx page instances are created
to handle concurrentt page requests. If this is correct, will my proposed
application architecture destroy scalability by serializing all calls
through the single httpmodule instance? Or am I completely off base with
this concern?

Thanks for your advice!

Joseph Geretz
Aug 28 '08 #2
you are not quite correct. there is a pool of HttpApplication instances.
each of these instance only need one instance of a given httpmodule,
as a HttpApplication instance is dedicated to each request and returned
to the pool after the request is processed.

your approach is fine, you may also want to look at the MVC library as
its supports a REST interface and url routing out of the box. you can
create as many of as few controllers as you need.

-- bruce (sqlwork.com)

Joseph Geretz wrote:
I'm implementing a web application whose purpose in life is to act as a data
conduit. Data is posted to my Web app in XML format, my application examines
the data and forwards it onward by posting it to the appropriate upstream
server.

Since transaction processing is largely identical regardless of the
transaction details (these will be handled by an upstream sever) I'm
thinking of implementing my application as an HttpModule. But I'm wondering
how this will work in terms of scalabiliy. If I understand the httpModule
architecture, there is only a single instance created to service all
transactions, even if several aspx page instances are created to handle
concurrentt page requests. If this is correct, will my proposed application
architecture destroy scalability by serializing all calls through the single
httpmodule instance? Or am I completely off base with this concern?

Thanks for your advice!

Joseph Geretz

Aug 28 '08 #3
Hi Bruce, thanks for your reply.
you are not quite correct. there is a pool of HttpApplication instances.
each of these instance only need one instance of a given httpmodule, as a
HttpApplication instance is dedicated to each request and returned to the
pool after the request is processed.
Can you elaborate on this please? I have been under the impression that each
web application implements a single Application instance which is why data
stored at the Application scope is accessible to all transactions executing
within that Application. The fact that there are actually more than a single
Application instance is a revelation to me. Are you saying that the
Application object is implemented as multiple instances sharing static data?
This would explain how multiple instances of the application object would
provide the same data to all instances. This would also explain why the
HttpModule implementation per se, would not be barrier to scalability.

Thanks for your advice!

Joseph Geretz

"bruce barker" <no****@nospam.comwrote in message
news:eO**************@TK2MSFTNGP04.phx.gbl...
you are not quite correct. there is a pool of HttpApplication instances.
each of these instance only need one instance of a given httpmodule, as a
HttpApplication instance is dedicated to each request and returned to the
pool after the request is processed.

your approach is fine, you may also want to look at the MVC library as its
supports a REST interface and url routing out of the box. you can create
as many of as few controllers as you need.

-- bruce (sqlwork.com)

Joseph Geretz wrote:
>I'm implementing a web application whose purpose in life is to act as a
data conduit. Data is posted to my Web app in XML format, my application
examines the data and forwards it onward by posting it to the appropriate
upstream server.

Since transaction processing is largely identical regardless of the
transaction details (these will be handled by an upstream sever) I'm
thinking of implementing my application as an HttpModule. But I'm
wondering how this will work in terms of scalabiliy. If I understand the
httpModule architecture, there is only a single instance created to
service all transactions, even if several aspx page instances are created
to handle concurrentt page requests. If this is correct, will my proposed
application architecture destroy scalability by serializing all calls
through the single httpmodule instance? Or am I completely off base with
this concern?

Thanks for your advice!

Joseph Geretz

Aug 28 '08 #4

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

Similar topics

4
by: Ian Turner | last post by:
Hi, In an attempt to get every request for a particular virtual directory to go through ASP.NET I've been trying to add a wildcard application mapping. The scenario is that any url for that VD,...
2
by: Will | last post by:
Hi, I am having trouble with a HttpModule which is registered to handle the HttpApplication.Error event. All works well until I throw an error from within the Session_End or Application_End event...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
2
by: Michael Appelmans | last post by:
I have implemented an httpmodule class and added it in the web.config, but when I try and use Context.RewritePath I get error: The virtual path "/searchresult?categoryid=104" maps to another...
4
by: Mike Schilling | last post by:
We have a C# application running under ASP.NET. It wasn't written using any VS.NET magic; all of the call the System.Web are made explicitly. It uses ..NET 1.1; no other version of the framework...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
0
by: Thomas | last post by:
in .net 1.1 we successfully use a HttpModule to catch 404 / 403.1 html errors. after migrating to .net 2.0, this modules is broken in a very, very strange way. we have defined a wildcard...
4
by: David Lozzi | last post by:
Howdy, I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel and Geoffrey LeBlond. Anyway, they have some instructions on how to setup application level error handling. Most...
1
by: Sriram Srivatsan | last post by:
Hi We are trying to build an application where we render some of the .aspx pages from the database using a class derived from System.Web.Hosting.VirtualPathProvider. Users configure the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.