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 6190989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:41:05+00:00 2026-05-24T02:41:05+00:00

how to design parallel processing workflow I have a scenarial case about data analysis.

  • 0

how to design parallel processing workflow

I have a scenarial case about data analysis.

There are four steps basicly:

  1. pick up task either read from a queue or receive a message throught API (web service maybe) to trigger the service

  2. submit request to remote service base on the parameters from step 1

  3. wait from remote service finished and download

  4. perform process on the data that downloaded from step 3

the four step above looks like a sequence workflow.
my question is that how can i scale it out.

every day i might need to perform hundreds to thousands of this task.
if i can do them in parallel, that will help a lot.
e.g run 20 tasks at a time.

so can we config windows workflow foundation to run parallel?

Thanks.

  • 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-24T02:41:06+00:00Added an answer on May 24, 2026 at 2:41 am

    You may want to use pfx (http://www.albahari.com/threading/part5.aspx), then you can control how many threads to make for fetching, and using PLINQ I find helpful.

    So, you loop over the list of urls, perhaps reading from a file or database, and then in your select you can then call a function to do the processing.

    If you can go into more detail as to whether you want to have the fetching and processing be on different threads, for example, it may be easier to give a more complete answer.

    UPDATE:

    This is how I would approach this, but I am also using ConcurrentQueue (http://www.codethinked.com/net-40-and-system_collections_concurrent_concurrentqueue) so I can be putting data into the queue while reading from it.

    This way each thread can dequeue safely, without worrying about having to lock your collection.

                Parallel.For(0, queue.Count, new ParallelOptions() { MaxDegreeOfParallelism = 20 },
                    (j) =>
                    {
                       String i;
                       queue.TryDequeue(out i);
                       // call out to URL
                       // process data
                    }
                });
    

    You may want to put the data into another concurrent collection and have that be processed separately, it depends on your application needs.

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

Sidebar

Related Questions

Background Information I have a distributed processing application that does data analysis. It is
Imagine I have two (three, four, whatever) tasks that have to run in parallel.
Is there any other documentation/discussion about the following design pattern (I'm not sure what
Design patterns are usually related to object oriented design. Are there design patterns for
I've just begun to explore the TPL and have a design question. My Scenario:
I have been going over the practicality of some of the new parallel features
I have an appliction right now that is a pipeline design. In one the
I have 100+ child packages and I need to run them in parallel from
I have to invoke REST endpoints A, B & C in parallel and combine
I have an XElement with values for mock data. I have an expression to

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.