Web Service Start Up - Erick

28-Feb-08 08:22:10
I'm trying to speed up my web services.
My problem is that the data takes a while to build so I cache it and
only refresh the data every 24 hours.
However, the data will only cache after the first person requests it.
This causes a 3 minute delay before the user gets a response and the
session times out.  Once in Cache the response is almost
instantanious.

is there a way that i can load my cache  so that the data is already
sitting in cache before the first user makes any web method requests?

Global.asax on start only runs when the first user makes a request.  I
need to it run before that.

Regards

Josef
reply
 
 

Web Service Start Up - Spam Catcher

29-Feb-08 12:15:50
d7e3032119c2@s13g2000prd.googlegroups.com:


If you need to statefully store information, have you considered caching it
in a local database?

Otherwise, you could create a stateful process (i.e. service) and fetch it
locally from there.

Lastly, there are ways to keep ASP.NET from recycling the appdomain, but it
seems a bit hackish to do:

http://weblogs.asp.net/pwilson/archive/2003/12/02/40681.aspx


--
spamhoneypot@rogers.com (Do not e-mail)
reply
 

Web Service Start Up - John Saunders [MVP]

01-Mar-08 01:53:48
You could write a small console application that would issue the same web
service request as the users do. Run it periodically, or when the system
starts. In effect, you would be creating the first user. This user would
still see the three minute delay; he just wouldn't complain about it!
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
reply
 
Sharepoint Profile Service - Stumped
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class