C # (mono) Hosting Linux web servers with constant static variables by thread

Does anyone know of a C # (mono) Linux web server hosting configuration that provides consistent static variables in streams (i.e. not a CGI instance model for a stream)?

More details

I have C # (mono) code that we need to host on linux as part of a simple web application. We don’t need any traditional asp.net functions or even asp.net mvc, we just need the ability to respond to specific URLs with dynamic content based on common static variables.

Static Variables: The only special requirement that we have is that we need static variables in order to keep their value in all incoming requests (the same as in Windows with ASP.net mvc application). The usual ways to host a mono C # web application, such as Apache mod_mono, seems to use the "instance of C # instance for each thread" model, where there will be several independent instances of our C # application, each with its own static variables. This is a problem that we need to avoid. I need a way to host a C # application that provides one common application with a common set of static variables that all incoming requests will see. This is normal if the application processes that static variables will receive a reset (as in regular IIS / MVC) if recirculation is infrequent.

This web application is supposed to store a large amount of data in RAM in a static variable and quickly answer questions about this data. Having a copy of the application open for each thread would limit the RAM resources too much, and reloading the data into memory often led to a too slow application (sometimes repeated calls, such as IIS / Asp.net MVC). The system works amazingly well on Windows / IIS7 (50,000+ dynamic requests per second), and we don’t want to change this architecture, so the answer I'm looking for is related to hosting that does not change the design of the application.

+3
source share
1 answer

mod_mono -. , fastcgi apache nginx.

EDIT: . Microsoft.NET IIS ( , mod_mono, xsp mono-fastcgi-). , apache , , ( , asp.net, ).

Mono 100% - ASP.NET, !

linux, , , mod_mono , ​​ (.. , linux). MonoDevelop/xsp .

+2

All Articles