> -----Original Message-----
> From: SteveC [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 17, 2003 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] Custom Cache for HTTP ?
>
>
> I create a custom thread pool at app startup in an ASP.NET
> app (thanks to Mike Woodring) for long-running async processes.
> The thread's output (a dataset) is serialized to disk and
> then picked up by the original calling ASP.NET user.
>
> I would like to speed this up by writing to a memory cache
> location.  The problem is that threads in the custom thread
> pool can't call System.Web.HttpContext.Current (nor can they
> call System.Reflection.Assembly.GetEntryAssembly().GetName().Name)
> to find where they came from.

To simulate some of this, you could try using a ramdisk.  MSDN has a bunch
of items on how to setup a ramdisk (for Win 2k, try here:
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:
80/support/kb/articles/Q257/4/05.ASP&NoWebContent=1 )

It's not as elegant a solution, but it should approximate the speed of a
shared memory solution (minus the filesystem overhead) and should be really
easy to test (just a few minutes to install the ramdisk and reconfig your
app to use the new drive for temporary space).  If it proves to increase
your performance, then you could look at the more elegant code based
solution.

Of course, depending on how large your serialized data is, you might need
more RAM...

Just a suggestion.

> I started to look into a shared memory sample, since the
> ASP.NET pool and custom thread pool are all inside
> aspnet_wp.exe "inside" the CLR, but it seems to be missing
> the example/sample projects
> (http://staff.develop.com/richardb/weblog/).
>
>
> Any thoughts greatly appreciated of course.

-Jon

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to