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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:04:27+00:00 2026-06-02T16:04:27+00:00

Not being an expert on MSMQ or WCF, I have read up a fair

  • 0

Not being an expert on MSMQ or WCF, I have read up a fair bit about it and it sounds and looks great.
I am trying to develop something, eventually but first some theory, which needs to be robust and durable.

MSMQ I guess will be hosted on a seperate server.

There will be 2 WCF services. One for incoming messages and the other for outgoing messages (takes a message, does some internal processing/validation then places it on the outgoing messages queue or maybe sending an email/text message/whatever)

I understand with the right configuration, we can have the system so that it can be transactional (no messages are ever lost) and can be sent exactly once, so no chance of duplication of messages.

The applications/services will be multithreaded to process messages, which there will be hundreds and thousands of them.

BUT during the processing of a message or through the services lifetime, what if the server crashes? What if the server reboots? What if the service throws an exception for whatever reason? How is it possible to not lose that message but some how to put it back on the queue waiting for it to be processed again?
Also how is it possible to make sure that the service is robust in such a way that it will spawn itself again?

I’d appreciate any advice and details here. There is quite alot to take in and WCF/MSMQ exposes quite alot of options.

  • 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-06-02T16:04:27+00:00Added an answer on June 2, 2026 at 4:04 pm

    Your assumption:

    MSMQ I guess will be hosted on a seperate server.

    is incorrect. MSMQ is installed on all machines which want to participate in message queuing.

    There will be 2 WCF services. One for incoming messages and the other
    for outgoing messages

    In the most typical configuration, the destination queues are local to the listening service.

    For example, your ServiceA would have a local queue from which it reads. ServiceB also has a local queue from which it reads. If ServiceA wants to call ServiceB it will put a message into ServiceB’s local queue.

    I understand with the right configuration, we can have the system so
    that it can be transactional (no messages are ever lost)

    This is correct. This is because MSMQ uses a messaging pattern called store-and-forward. See here for an explanation.

    Essentially the reason it is safe to assume no message loss is because the transmission of a message from one machine to another actually takes place under three distinct transactions.

    1. The first transaction: ServiceA writes to it’s own temporary local queue. If this fails the transaction rolls back and ServiceA can handle the exception.
    2. Second transaction: Queue manager on ServiceA machine transmits message to Queue manager on ServiceB machine. If failure then message remains on temporary queue.
    3. Third transaction: ServiceB reads the message off local queue. If ServiceB message handler method throws exception then transaction rolls message back to local queue.

    The applications/services will be multithreaded to process messages

    This is fine except if you require order to be preserved in the message processing chain. If you need ordered processing then you cannot have multiple threads without implementing a re-sequencer to reapply order.

    I thought that MSMQ can be hosted seperately and have x servers share
    that queue?

    All servers which want to participate in the exchange of messages have MSMQ installed. Each server can then write to any queue on any other server.

    The reason for my thinking was because what if the server goes down?
    Then how will the messages get sent/received into MSMQ

    If the queues are transactional then that means messages on them are persisted to disk. If the server goes down then when it comes back up the messages are still there. While a server is down it obviously cannot participate in the exchange of messages. However, messages can still be “sent” to that server – they just remain local to the sender (in a temporary queue) until the destination server comes back on-line.

    so by having one central MSMQ server (and having it mirrored/failover)
    then there will be guarentee of uptime

    The whole point of using message queueing is it’s a fault-tolerant transport, so you don’t need to guarantee uptime. If you have a 100% availability then there would be little reason to use message queuing.

    how will WCF be notified of messages that are incoming?

    Each service will listen on its own local queue. When a message arrives, the WCF runtime causes the handling method to be called and the message to be handled.

    how will the service be notified of failures of sending messages

    If ServiceA fails to transmit a message to ServiceB then ServiceB will never be notified of that failure. Nor should it be. ServiceA will handle the failure to transmit, not ServiceB. Your expectation in this instance creates a hard coupling between the services, something which message queueing is supposed to remove.

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

Sidebar

Related Questions

I have used regExp quit a bit of times but still far from being
I'm not a CSS expert so I might be missing something obvious. I'm trying
I have been stuck on this one for a while, I'm not an expert
We have an ongoing problem with message writes to MSMQ being very slow. Our
I am working on a django model and not being a database expert I
I'm not a real big TSSQL expert. We have a query that returns almost
: I have to say that I am far from being an expert in
Not confident about whether this will be downvoted or closed... I need expert opinion
Not being used to php, I'm facing an issue with accessing arrays and its
Not being able to find the answer, and also not being able to do

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.