横向扩展多个服务器 [英] Scale out multiple servers
问题描述
我是初学网页开发人员。我需要你的建议。
所以,我有整体WCF服务,处理一些任务。
我需要在外国服务器上扩展这项任务。
I'm beginner web developer. And I need your advice.
So, I have holistic WCF Service, that processing some tasks.
I need to scale this tasks on foreign servers.
我的事情是:
首先,我需要使用一些队列,这将是存储一些处理任务。 (与SQL / ActiveMQ或其他决定一样)
其次,我需要使用一些工具,它将使用此队列与外部服务器进行通信。
My things about that is:
First, I need to use some queue, that will storage some task for processing. (Like SQL/ActiveMQ or others decision)
Second, I need to use some instrument, that will communicate foreign servers with this queue.
例如:
我在我的WCF服务上接受了处理请求。如果我的数据库中有响应数据,我会将其返回。
I took request on my WCF service for processing. If I have data for response on my data base, I return it.
否则我发送一些其他WCF服务请求并获取摘要数据(我将其保存在数据库中供将来使用)。
Else I send some requests for other WCF Services and take summary data (that I'll save it in DB for future using).
因此,我需要在外国服务器上发送请求来扩展此逻辑。
So, I need to scale this logic with sending requests on foreign servers.
我必须使用哪些技术来解决这个问题?
What technologies I have to use for this solution?
感谢您的时间!
推荐答案
嗨MishaGrigoriev,
>>我必须使用哪些技术来解决这个问题?
< span style ="font-size:medium">根据您的描述,如果服务没有数据,您希望将请求发送到其他wcf服务来处理数据,是吗?根据我的经验,你可以
尝试 u 使用http协议向其他wcf休息服务发送请求,并处理
来自其他wcf休息服务器的响应。以下有关wcf休息服务的链接供您参考。
According to your description, you want to send the requests to other wcf service to handle the data if the service haven’t the data, does it? From my experience, you could try to use the http protocol to send requests to other wcf rest services, and handle the responses from other wcf rest servers. The following links about wcf rest service for your reference.
https:// msdn.microsoft.com/library/bb412172(v = vs.100).aspx
http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services
最好的问候,
Cole Wu
这篇关于横向扩展多个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!