降级的Web服务 [英] Web Service with degradation

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

问题描述

你好朋友

我有一个Web服务,它每5秒执行一次,因为它是由exe文件启动的.

I've a web service, it is executing each 5 seconds, because is launched by an exe file. 

Web服务具有执行SQL Server数据库过程的Web方法.我已经观察到该Web服务需要花费一点时间(1秒)来执行该Web服务.同样,花费相似的时间来获得结果.我没问题 有了这个时间,但是每周的每一天中,这些响应时间都会增加,有时需要40或50秒才能执行并做出响应.

The web service has a web method that execute a sql server database procedure.  I have observed that the web service take a little time (1 second) for execute the web service. Also it takes a similar time for obtain the result.  I don't have problem with this time but each day of the week those response times increase sometimes it takes 40 or 50 seconds in execute and respond back.

我不知道为什么会这样.  是否可以更快地访问我的Web服务?  为什么会这种降解?

I don't know why this happen.  Is there a way to my web services could be quicker?.  Why this degradation?

请帮助我.  

Please help me with this.  

谢谢您的帮助.

问候

PD:exe文件是在vb NET中开发的,而Web服务是在C#4.5中开发的.该Web服务托管在Windows Server 2008 R2 Standard SP1中,而我的IIS是7.5

PD:  the exe file is developed in vb NET  and the web service in C# 4.5. The web service is hosted in a Windows Server 2008 R2 Standard SP1 and my IIS is 7.5

PD:我也跟踪了SQL Server过程,因此响应速度非常快.

PD:  Also i tracked the SQL Server procedure and this respond very quickly.


推荐答案

嘿,

您是通过Web服务获取数据还是在数据库中插入任何数据?

through web services are you fetching data or inserting any data in database ??


这篇关于降级的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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