473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1565
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.