Web Service VS .ASPX页面 [英] Web Service VS .ASPX page

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

问题描述

我有一个ASP.net页,当前正在处理发送给它的http请求.每天大约收到1万个请求,似乎可以很好地处理流量.该页面通过XMLTextReader解析request.InputStream,然后将数据写入SQL Server数据库.我什么也没退.

我想知道是否可以通过将其更改为Web服务而获得任何性能提升?看来我可以使用几乎相同的代码.我相信,通过此举我也将获得更轻松的错误记录功能.

我问这个问题是因为我们可能一天要处理5万个请求,并需要应用程序来处理.

I have a ASP.net page that is currently processing http requests sent to it. It receives about 10k requests per day and seems to be handling the traffic well. The page parses through the request.InputStream via XMLTextReader and then writes the data to a SQL server database. I am not returning anything.

I am wondering if I would get any performance boost out of changing this to a web service? It appears I could use almost the same code. I do believe that I would gain easier error logging features from this move also.

I ask this because we may be moving to 50K requests a day and need the application to handle it.

推荐答案

我不确定它是否会更好,但我确实认为这是一种更明智的做法.我建议进行更改,然后进行一些性能测试,以查看它们是否运行得更好.
I''m not sure if it would perform better, but I do think it would be a more sensible way of doing it. I would suggest making the change, and then doing some performance testing to see if either runs better.


这篇关于Web Service VS .ASPX页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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