473,473 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can a web service be 'cached' ?


I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?

Nov 23 '05 #1
14 1567
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution
is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?


Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.

--
---
Giuseppe Nacci
Microsoft Certified System Engineer
Security Manager

--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to su******************@degennaro.biz
Thank you
--------------------------------------------------------------------

Nov 23 '05 #2
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution
is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?


Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.

--
---
Giuseppe Nacci
Microsoft Certified System Engineer
Security Manager

--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to su******************@degennaro.biz
Thank you
--------------------------------------------------------------------

Nov 23 '05 #3
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution
is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?

Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?
Nov 23 '05 #4
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution
is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?

Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?
Nov 23 '05 #5
ja*****@texeme.com wrote:
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved
into memory. This causes problems as records are dropped. My
solution is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?

Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?


Where? In IE or where do you 'll want to set cache duration?
--
---
Giuseppe Nacci
Microsoft Certified System Engineer
Security Manager

--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to su******************@degennaro.biz
Thank you
--------------------------------------------------------------------

Nov 23 '05 #6
ja*****@texeme.com wrote:
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved
into memory. This causes problems as records are dropped. My
solution is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?

Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?


Where? In IE or where do you 'll want to set cache duration?
--
---
Giuseppe Nacci
Microsoft Certified System Engineer
Security Manager

--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to su******************@degennaro.biz
Thank you
--------------------------------------------------------------------

Nov 23 '05 #7
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved
into memory. This causes problems as records are dropped. My
solution is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?
Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?

Where? In IE or where do you 'll want to set cache duration?


Actually that's not what I want.

That will cache results that are to be reused.

I just want the whole service to reside in memory for fast access.

Do I have to buy a whole nother product just to do that?

Can't I just change a setting in IIS 5.0 ?

Nov 23 '05 #8
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
Giuseppe Nacci wrote:
ja*****@texeme.com wrote:
I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a
web service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved
into memory. This causes problems as records are dropped. My
solution is to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay
in memory ( pre-cached, basically ) so that it's /always/ ready to
serve?
Yes, It's possible but you must use ISA Server in cache mode or in
integrated mode.


Can I just do this:

[WebMethod]
(
Description="mymethod",
CacheDuration=43200)
]

And set it to some incredibly high value ( like 48 hours ) ?

Where? In IE or where do you 'll want to set cache duration?


Actually that's not what I want.

That will cache results that are to be reused.

I just want the whole service to reside in memory for fast access.

Do I have to buy a whole nother product just to do that?

Can't I just change a setting in IIS 5.0 ?

Nov 23 '05 #9
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the expected
lmit). One way to handle this is, always keep the number of request to a lmit
say 20. For e-g start hitting asmx with 20 requests asychronously once the
call back gets a response span another request there by u maitain the number
of hits to your asmx.
Hope this give an idea.

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?

Nov 23 '05 #10
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the expected
lmit). One way to handle this is, always keep the number of request to a lmit
say 20. For e-g start hitting asmx with 20 requests asychronously once the
call back gets a response span another request there by u maitain the number
of hits to your asmx.
Hope this give an idea.

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?

Nov 23 '05 #11
Ravi wrote:
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the
expected lmit). One way to handle this is, always keep the number of
request to a lmit say 20. For e-g start hitting asmx with 20 requests
asychronously once the call back gets a response span another request
there by u maitain the number of hits to your asmx.
Hope this give an idea.
That's an excellent idea!

Right now I loop through all my records and launch async calls ( up to
1000 ) all at once, and then wait for completion.

What you're saying is to launch them 20 at a time, wait, and then launch
another 20.

That makes total sense!

Thanks for your help!!!

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 23 '05 #12
Ravi wrote:
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the
expected lmit). One way to handle this is, always keep the number of
request to a lmit say 20. For e-g start hitting asmx with 20 requests
asychronously once the call back gets a response span another request
there by u maitain the number of hits to your asmx.
Hope this give an idea.
That's an excellent idea!

Right now I loop through all my records and launch async calls ( up to
1000 ) all at once, and then wait for completion.

What you're saying is to launch them 20 at a time, wait, and then launch
another 20.

That makes total sense!

Thanks for your help!!!

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 23 '05 #13
Ravi wrote:
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the
expected lmit). One way to handle this is, always keep the number of
request to a lmit say 20.
PS -- although I'm sort of puzzled by the idea that IIS -- which is
supposedly scalable to very large sites, cannot handle thousands of async
requests simultaneously (!)

Or maybe it's w2k threading that's not up to scratch...

For e-g start hitting asmx with 20 requests
asychronously once the call back gets a response span another request
there by u maitain the number of hits to your asmx.
Hope this give an idea.

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 23 '05 #14
Ravi wrote:
Hi,
I just thought I'll give my idea on this. Usually IIS is very efficient
in handling multiple requests. In your case the only problem might be IIS
throwing exception saying multiple users are connected(more than the
expected lmit). One way to handle this is, always keep the number of
request to a lmit say 20.
PS -- although I'm sort of puzzled by the idea that IIS -- which is
supposedly scalable to very large sites, cannot handle thousands of async
requests simultaneously (!)

Or maybe it's w2k threading that's not up to scratch...

For e-g start hitting asmx with 20 requests
asychronously once the call back gets a response span another request
there by u maitain the number of hits to your asmx.
Hope this give an idea.

Thanks,
Ravi

"ja*****@texeme.com" wrote:

I build a system where a Windows service iterates through a file and
sends each line in the file as a record to a database, by calling a web
service asynchronously. It runs on a w2k server.

What I notice is:

When the web service gets called, there seems to be a slowness and
potential for missed calls - my guess is because it's being moved into
memory. This causes problems as records are dropped. My solution is
to redo the load if it notices that records are missing.

One thought I had : Is it possible to force the web service to stay in
memory ( pre-cached, basically ) so that it's /always/ ready to serve?


--
Texeme Textcasting Technology
http://www.texeme.com
Nov 23 '05 #15

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

Similar topics

7
by: jabailo | last post by:
I build a system where a Windows service iterates through a file and sends each line in the file as a record to a database, by calling a web service asynchronously. It runs on a w2k server. ...
5
by: Buddy Ackerman | last post by:
My app is a .NET forms app that runs in the taskbar and periodically polls a web service. I have a client that wants the app to integrate with their Active Directory. They do not want the user to...
2
by: Kim Floyd | last post by:
We have an application that uses .Net remoting to allow remote servers to connect to a master server to synchronize data. The format of the url we use to the master server looks like...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
0
by: BVM | last post by:
Hi, I have a problem and hope you can give some advice. I have a windows Form which uses web service to communicate with our web site and database. It's working fine in most of our offices....
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.