6

Is there any way to have apache "pass" the request it takes to a c# "application" to handle, allowing it to return specific content. I want to handle an intense amount of asynchronous calls to apache via javascript and have these calls routed through c# (much the way asp.net does). Has anyone successfully done this before? Any idea where to start looking?

Update:
Some more information. I want to be able to handle thousands of concurrent asynchronous requests as fast as can possibly occur writing the interpreting agent in some kind of threaded c# application. I could be wrong, but I dont think that iis with asp.net is tailored for this sort of thing (a proof of concept would be great).

I feel that going with something like apache would be better suited. If that means going from something else to c# first is fine I guess, but I would like to be more direct.

VMAtm
  • 27,943
  • 17
  • 79
  • 125
Dested
  • 6,294
  • 12
  • 51
  • 73

2 Answers2

1

Apache actually supports running C# libraries using mod mono. Also, you could use CURL to send a web request to C# running on IIS. Another way would be to open a server socket directly in C#, and have apache (via php, python, or some other scripting language) connect to you C# application to handle the request. I think you need to be more specific about what exactly you are trying to accomplish.

Kibbee
  • 65,369
  • 27
  • 142
  • 182
1

with apache2, you could run mod_aspdotnet

or if it suits you, run some urls in proxy mode (pass them to another asp.net server), using mod_proxy

or Kibbee's excellent solution

Community
  • 1
  • 1
jspcal
  • 50,847
  • 7
  • 72
  • 76