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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:28:41+00:00 2026-05-27T09:28:41+00:00

Here is my scenario: Pick up message off of a queue (IBM MQ) Pass

  • 0

Here is my scenario:

  1. Pick up message off of a queue (IBM MQ)
  2. Pass to async process (Archive the file and get fileId from DB) Thread #1
  3. Shred the xml message and join to process #2 (So I can use fileId) Thread #2
  4. Send shredded data to DB with fileId (From Thread #1 and Thread #2)
  5. In Parallel with Steps #2 and #3 above I will modify the message and send to another queue Thread #3

EDIT: The reason I was thinking about using multiple threads is that for step #5 I want it to modify the xml and write to the queue regardless if Step #2 and #3 fail. I was thinking for Step #2 and #3 that I could do archive and shred xml separately to try and speed up that process.

Number of Messages a day (200,000 to 500,000)

Question: If I am using the same message for all three processes above will I run into any issues? Should I copy the message so that when I modify the message in Step #5 (Thread #3) I don’t have any issues? I am still ignroant with multi-threading so I am just trying to think through the best way to handle this scenario and have the most throughput.

Using C# 4.0.

Thanks,

S

  • 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-27T09:28:41+00:00Added an answer on May 27, 2026 at 9:28 am

    This will be OK if the message is (treated as) immutable.
    So you definitely need a copy in step 5.

    For the rest: It depends, on almost everything.

    You may see some advantage from threading due to the different I/O channels.

    On the other hand, if there are many messages coming in then it might work just as well or better to do all 5 steps on 1 Thread per message.

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

Sidebar

Related Questions

Here's my scenario: I'm opening a window from a javascript file, and setting an
Right, so here the scenario: I've created a class called DiaryPage that inherites from
I have this scenario: One client sends a message into a msmq queue instance
Here's the scenario - I have a C# application that reads from a COM
Tackling a strange scenario here. We use a proprietary workstation management application which uses
I know how to write tab host,but here the scenario is little bit different
Here's my scenario - I have an SSIS job that depends on another prior
Here is the scenario: I'm writing an app that will watch for any changes
Here's the scenario: A C# Windows Application project stored in SVN is used to
Here is the scenario that I have. I have a cvs repository in one

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.