解决方案在本地网络的简单网格计算 [英] Solution for simple grid computing in local network

查看:246
本文介绍了解决方案在本地网络的简单网格计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用.NET以下问题制定一个简单的解决方案:

I'd like to develop a simple solution using .NET for the following problem:

我们在本地网络中的几台电脑:

We have several computers in a local network:


    可能需要执行一个只在两个工作站上安装的程序
  • 10的客户端计算机

  • ,仅用于执行所定义的程序中的两个工作站

  • 可用于安装从所有previously描述电脑服务的服务器

当客户计算机需要执行程序,他就向服务器发送一个请求,并且服务器将作业时可用分发到工作站执行,并且当已经执行了执行通知客户端计算机。

When a client computer needs to execute the program, he would send a request to the server, and the server would distribute the job to a workstation when available for execution, and inform the client computer when the execution has been performed.

我不是很习惯的网络和服务的开发,所以我不知道,如果是去的最佳途径,但下面是一个可能的解决方案我想到了:

I'm not very used to web and services development so I'm not sure if it's the best way to go, but below is a possible solution I thought about:


  • 在与他们的状态队列或数据库的任务列表中的服务器存储Web服务

  • 客户端计算机调用Web服务执行程序,并得到一个任务ID。然后调用它的每一秒与任务的ID如果执行已执行就知道了。

  • 可用工作站调用Web服务每秒钟知道如果有什么执行。如果是,则服务器分配的任务,工作站调用时执行完成的Web服务。

我在下面的图总结了这一点:

I summarized this in the below figure:

你觉得一个简单的解决方案?

Do you think to a simpler solution?

推荐答案

看一看 signalr !你可以使用它作为消息传递框架,你不会需要从2个不同的diretions查询服务。与signalR你将能够推执行命令到服务,并且一旦执行已被处理的服务将通知客户端。工作站将与signalR连接,太。他们不会需要问执行定单作为Web服务将能够推动执行命令所有或特定的工作站。

Have a look at signalr! You could use it as messaging framework and you would not need to poll the service from 2 different diretions. With signalR you would be able to push execution orders to the service and the service will notify the client once the execution has been processed. The workstation would be connected with signalR, too. They would not need to ask for execution orders as the webservice would be able to push execution orders to either all or a specific workstation.

这篇关于解决方案在本地网络的简单网格计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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