使用HttpRequest的并行处理 [英] Parallel Processing using HttpRequest

查看:82
本文介绍了使用HttpRequest的并行处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



祝大家新年快乐.这是我今年的第一篇帖子.

我需要在当前项目中实现并行处理,一些性能问题.

当前项目详细信息:

1)Httprequest是从客户端计算机发出的.
2)服务器处理请求.(花费的时间比如果要记录多条记录,则为2分钟)
3)服务器以xml格式发送响应.
4)客户端具有我们的核心引擎,该引擎处理xml命令并一个接一个地处理作业.
5)如果所有工作都完成了,用户会在我们的自定义Excel模板中看到包含数据的数据.

我们的要求:

1)我们希望对httprequest的http响应
2)我们的引擎应该能够并行处理每个大块xml,直到另一组大块xml来自服务器.
3)作业队列被​​创建为Clinet端.
4)我们将修改服务器代码以实现paral
5)我们的客户端需要进行哪些更改.

问题:

1)一个httprequest能否从服务器获取多个HttpResponse吗?
2)是的,我如何用C#实现.(请写一个代码段)
3)如果这根本不可能,我们如何实现该avobe要求.

,请让我知道我走错了路,而且我想的是开箱即​​用的.



Dwipayan Das

解决方案

感谢您的信息!我建议您在一个MS论坛中发布您的问题,


Hi ,

Happy new year to all .This is my first post in this year.

I have a requirement to implement parallel processing in my current project which has some performance issue.

Current project details:

1) Httprequest is made from Client machine .
2) Server processes the request .(which takes sometime more than 2 mins if multiple records to be feteched)
3) Server sends the response in form on xml .
4) Client side has our core engine which processes the xml commands and processes the job one after another.
5) If all job are completed user sees the Data in our customized Excel templates with data.

Our Requirement:

1) we want the httpresponse to the httprequest should come in chunks to the client side.
2) Our Engine should able to process each chunk xml parallely till the other set of chunk xml comes froms server.
3) Job queue is created a Clinet side.
4) We are going to modify our server code to achive parallel processing.
5) What are the changes needed in our Client side.

Questions:

1) Can one httprequest capable of getting multiple HttpResponse from server ?
2) If yes how can i achieve in C#.(Please somebody write a code snippet)
3) If this is not at all possible how can we achive this avobe requirement.

Please let me know I am in a wrong path and its complete out of Box i am thinking.



Dwipayan Das

解决方案

Hello Dwipayan,

 

Thank you for your post!  I would suggest posting your question in one of the MS forum, 


这篇关于使用HttpRequest的并行处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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