Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4623254
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:57:38+00:00 2026-05-22T02:57:38+00:00

My question is very simple, but the answer might not be. I have thousands

  • 0

My question is very simple, but the answer might not be.

I have thousands of workers performing the same task, and I would like them to be executed in a parallel fashion on many remote virtual machines (Cloud or Network)

Here is the idea :

class ThreadManager
{
    public void main()
    {
      for (int i = 0; i<300; i++)
      {
        myWorker wk;
        if (i < 100)
            wk = new myWorker(IP_Computer_1);
        else if (i < 200)
            wk = new myWorker(IP_Computer_2);
        else 
            wk = new myWorker(IP_Computer_3);

        wk.RunWorkerAsync();
      }
    }

    internal class myWorker :: BackgroundWorker
    {     
       public string IP_Computer;
       {...}//constructor

       protected override void OnDoWork(DoWorkEventArgs e)
       {              
          WriteToDatabaseTable("BAZINGA !  Greetings from computer " + Dns.GetHostName());
          //SQL server DB is hosted on a publicly accessible domain
          base.OnDoWork(e);
       }
    }
}

Of course, this is pseudo code, you get the idea : Assigning threads/workers to different computers/VM’s over the network (not only multi-cores)

What basic/simplest options do I have ?
I am open to ANY light and efficent solution (I do not want to go into complex scheduling/app workflow reengineering, etc… let’s keep it as plain as it is, please)

NB : This is NOT an innocent question. I am aware of all the fuss about grid/cloud computing, HPC , Amazon web services, Azure etc… I spent a lot of time reading around and trying stuff, and my opinion is that there are a lot of (money) business going out there. Sometimes it’s good to go back to basics and ask simple questions to see if we really need an overly sophisticated/complicated/invasive/expensive solution to solve basic issues (we are not a Fortune 500 with a giant network, but just a small research company with specific/atomic computing needs)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:57:39+00:00Added an answer on May 22, 2026 at 2:57 am

    The simplest way to do this is to model your “DoWork” as a method on a WCF service.
    Use NetTCP bindings, and load balance across multiple machines. This is appropriate if the machines are stateless clones, and all state is maintained on the database. In that case you shouldn’t care about which machine services your request, and you shouldn’t need to futz with IP addresses at the application level.

    That provides no communication guarantees, no reliability or failover. For example, if the servicing machine “dies” during a request, the request would not be restarted on another machine. This may be just fine for your needs.

    If you want guaranteed delivery (aka fire-and-forget) and transaction durability, consider using the MSMQ Transport for your WCF Service. In this case the service machine dequeues transactionally, and the transaction commits only if the database update has been performed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This looked like a very simple question but I couldn't find the answer. How
This is a very simple question with a simple answer, but it is not
This question might appear very simple, but i haven't found an answer yet, so
very simple question (but I can't find the answer on the Web...): I have
This question can be very simple but could not find the answer; I receive
This might seem like a very simple question, but I am struggling with it.
I know this is probably a very simple question but how would I do
I feel like the answer to this question is really simple, but I really
Maybe, it's very simple question but I couldn't get the answer. I've been searching
This is likely a very simple question with a straightforward answer but I'm something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.