• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 89
  • Last Modified:

C# distributing programming

i have a situation where i have 2 dlls written in C# , but kept in 2 different servers dllA on server A and dllB on server B .

now i want to utilize power of both the servers (RAM and CPU) , how can write a program in C# , which does following things
1. executes both the dlls on their respective servers
2. now when execution of both dlls complete it combines the result on server A
0
BeyondBGCM
Asked:
BeyondBGCM
  • 5
  • 4
  • 3
  • +3
1 Solution
 
ste5anSenior DeveloperCommented:
A simple solution would be using psexec to run those programs. On the otherhand, I would also consider running your programs as Windows service.
0
 
BeyondBGCMAuthor Commented:
can you please explain it in detail .....?
0
 
BeyondBGCMAuthor Commented:
how windows service can execute 2 dlls on 2 different servers at same time , and can combine the results .
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
ste5anSenior DeveloperCommented:
It's plural: "programs". You need to run a service on each machine.
0
 
AndyAinscowCommented:
>>executes both the dlls

dll's are libraries of code.  They do not run on their own.  Your app can use code from a dll but it runs in your app.

What you want may be impossible, it depends on what you require as results AND how much you can redesign the existing things.
0
 
BeyondBGCMAuthor Commented:
Biz Talk server can solve this problem...?
0
 
BeyondBGCMAuthor Commented:
no answer comments for past 2 months
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
Hi mate,
as said before, dll's are not applications.
They don't compute on their own.

My advise is:
1. Create 2 WCF (SOAP or REST) services, one for each dll and expose the methods you need.
2. Deploy each WCF service on the different servers.
3. Consume both services from the application that needs the output.

Like this each "dll" will be executed in a different server like you want and the application just needs to wait for both executions to complete and act upon.

Also be aware this also requires that the calls to the web services need to be asynchronous.
0
 
it_saigeDeveloperCommented:
Just reiterating the previous comments.  In order to do what you want to accomplish (regardless of whether the assemblies are exe's or dll's)...  You would need to use something that is running on the targeted server in order to make the calls and do the calculations you are attempting to use.  Whether it is a WCF service, psexec or just a plain old application does not matter.

-saige-
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
.NET Remoting allow you to call dlls that are installed on different computers.
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
@Jaques, with .Net Remoting is just an abstraction (helper) layer on top of sockets communication.
This means that on the destination server we must have some sort of application already running and listening to a port.

So again, DLL's don't run code by themselves, and you don't do distributed computing just by spreading DLL's around.
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
@Alexandre

And this application can serve as a bridge between the client and the dll installed on the server.
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
Of course, but it's not just the DLL.
You'll always need an application of some sort, on the remote server, that references the DLL and exposes the methods.
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
Well, I agree that my statement about remoting was not clear. Comment taken.
0
 
AndyAinscowCommented:
Which leads one back to the original comments on this question.
You can't do it with some setting - one has to write code and run things on each server.
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
I think we all agree on that... now we just need @BeyondBGCM to come and explain exactly what he's trying to accomplish :)
0
 
ste5anSenior DeveloperCommented:
I have scared him..
0
 
AndyAinscowCommented:
I suspect he is waiting for someone to tell him the magic word and then everything will work without having to do anything else.
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
Lets give the Time-Zone go around :)

I'm out for today,
Cheers guys!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 4
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now