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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:33:43+00:00 2026-05-26T19:33:43+00:00

Is it possible to use an MSMQ queue to load-balance requests? If I have

  • 0

Is it possible to use an MSMQ queue to load-balance requests? If I have clients 1-n send in requests to a WCF service, which then enqueues each request, and have 1-n servers in the background each grabbing the next available request as they become available, I would assume this effectively load-balances.. however, how would I then get the response back? I realize I could subscribe to ‘complete’ events in my WCF service, but then i have to parse all events when i only care about one.. How could I accomplish a callback mechanism of some sort with this architecture?

  • 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-26T19:33:43+00:00Added an answer on May 26, 2026 at 7:33 pm

    If you are using the MSMQ to send events, then there is no inbuilt concept of “getting the response back”.

    Here’s a solution: the clients can each have their own message queue which they listen on. When the workers have completed their tasks they can send a “completed” message back to the client.

    But how would the server know the address of the client’s message queue?

    One approach would be to supply the client’s message queue address as a parameter in each function.

    A better approach would be to include this address as a custom header value.
    The custom header solution is a better approach for two reasons. Firstly, this can be configured via the client’s configuration file, allowing the queue details to be changed after deployment. Secondly, it’s never desirable for the details of the communication “plumbing” to intrude into the function call abstraction layer, and the custom header solution allows you to avoid this.

    See this question for an example of custom headers being used.

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

Sidebar

Related Questions

It is possible have one MSMQ queue in one machine and read masseges from
Is it possible to have multiple listeners to messages carried by MSMQ? WCF appears
I have recently started looking into Google Charts API for possible use within the
Is it possible to use an UnhandledException Handler in a Windows Service? Normally I
I have a BizTalk 2006 app which has a sendport using MSMQ. I have
Is it possible to use NServiceBus with a database as the queue storage instead
I have a WCF service that is hosted in a windows application. The service
Do I need to create all objects which i will possible use with itemRenderer
I have reviewed DashCommerce, nopCommerce and DotShoppingCart for possible use and all of them
Is it possible use mod_rewrite to resolve addresses hosted on another server? Say I

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.