Web服务可以“缓存”吗? [英] Can a web service be 'cached' ?

查看:72
本文介绍了Web服务可以“缓存”吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我构建了一个系统,其中Windows服务遍历文件,并且
通过调用web将文件中的每一行作为记录发送到数据库

异步服务。它在w2k服务器上运行。


我注意到的是:


当调用Web服务时,似乎很慢并且

未接来电的可能性 - 我的猜测是因为它被转移到

内存中。这会导致记录丢失时出现问题。我的解决方案是

重做负载,如果它注意到记录丢失了。


有人以为我有:是否可以强制保持Web服务在

内存(基本上是预先缓存的),以便它/ /总是/准备服务?


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?

推荐答案

ja*****@texeme.com 写道:
我建立Windows服务通过文件迭代并通过异步调用
Web服务将文件中的每一行作为记录发送到数据库的系统。它运行在一个w2k服务器上。

我注意到的是:

当调用Web服务时,似乎有一个缓慢和错过呼叫的可能性 - 我的猜测是因为它被转移到了内存中。这会导致记录丢失时出现问题。我的解决方案是重做负载,如果它注意到记录丢失了。

有一个想法:是否有可能强制Web服务留在内存中(前-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?




是的,这是可能的,但你必须使用ISA服务器处于缓存模式或

集成模式。


-

---

Giuseppe Nacci

微软认证系统工程师

安全经理


-------------- -------------------------------------------------- ----

保密声明

此邮件及其附件仅针对上述人员b / b
并且可能包含机密信息。如果您错误地收到了

的消息,请注意,禁止使用任何内容

。请立即将其返回给发件人,并删除消息。
消息。如果您有任何疑问,请联系我们

回复 su ****************** @ degennaro.biz

谢谢

--- -------------------------------------------------- ---------------



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
--------------------------------------------------------------------


ja ***** @ texeme.com 写道:
我构建了一个系统,其中Windows服务迭代文件并
发送文件中的每一行作为数据库的记录,通过异步调用
Web服务。它运行在一个w2k服务器上。

我注意到的是:

当调用Web服务时,似乎有一个缓慢和错过呼叫的可能性 - 我的猜测是因为它被转移到了内存中。这会导致记录丢失时出现问题。我的解决方案是重做负载,如果它注意到记录丢失了。

有一个想法:是否有可能强制Web服务留在内存中(前-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?




是的,这是可能的,但你必须使用ISA服务器处于缓存模式或

集成模式。


-

---

Giuseppe Nacci

微软认证系统工程师

安全经理


-------------- -------------------------------------------------- ----

保密声明

此邮件及其附件仅针对上述人员b / b
并且可能包含机密信息。如果您错误地收到了

的消息,请注意,禁止使用任何内容

。请立即将其返回给发件人,并删除消息。
消息。如果您有任何疑问,请联系我们

回复 su ****************** @ degennaro.biz

谢谢

--- -------------------------------------------------- ---------------



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
--------------------------------------------------------------------


Giuseppe Nacci写道:
Giuseppe Nacci wrote:
ja ***** @ texeme.com 写道:
ja*****@texeme.com wrote:
我建立一个Windows系统service遍历文件并通过异步调用
Web服务将文件中的每一行作为记录发送到数据库。它运行在一个w2k服务器上。

我注意到的是:

当调用Web服务时,似乎有一个缓慢和错过呼叫的可能性 - 我的猜测是因为它被转移到了内存中。这会导致记录丢失时出现问题。我的解决方案是重做负载,如果它注意到记录丢失了。

有一个想法:是否有可能强制Web服务留在内存中(前-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?



是的,这是可能的,但你必须在缓存模式下使用ISA Server或者在
集成模式下。


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




我可以这样做:


[WebMethod]



描述=" mymethod",

CacheDuration = 43200)

]


并将其设置为令人难以置信的高价值(如48小时)?



Can I just do this:

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

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


这篇关于Web服务可以“缓存”吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆