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

The Archive Base Latest Questions

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

In my project I receive a transaction from the client then process it and

  • 0

In my project I receive a transaction from the client then process it and return a status back to the client via WCF. As you know I have to somehow save the transaction for recovery purposes and persistence.

I am thinking of using MSMQ for that purpose. When the transaction starts I will “save” it on MSMQ (database save will occur in a batch for performance reasons).

Is MSMQ good for that? Do you know of better way to create persistence? What is the best way to “backup” the transaction and keep high performance?

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

    When picking a technology I think it’s helpful to consider not only can the technology meet your needs, but also whether it was designed to meet your needs. By this I mean that you should choose the best option rather than just the first option that seems good enough. You could probably solve this problem with logging or text files or various other means, but that doesn’t mean you should.

    My order of preference in this situation would be

    1. database
    2. MSMQ
    3. everything else

    If it isn’t possible to save transactions to database for whatever reason then MSMQ can probably help you here. It should perform better than a opening a database connection & committing yet provides a ‘good’ persistence layer. The downside is that it’s more code and another point of failure for your application (not that it will fail if written properly, but more code means more places for bugs).

    You can throw your transactions into a queue very easily using something like this

    private string queuePath = @".\Private$\myQueue";
    MessageQueue queue = new MessageQueue(queuePath);
    
    Message message = new Messge();
    message.Id = "messageId";
    message.Body = "my content";
    
    queue.Send(message, transaction);
    transaction.Complete();
    queue.Close();
    

    and then retrieve them later through querying properties: MSMQ querying for a specific message. There’s a lot of other functionality out of the box but keep it simple.

    Some relevent questions:

    • MSMQ as buffer for SQL Server Inserts
    • MSMQ vs Temporary Table Dump
    • MSMQ v Database Table
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an iPhone project that needs to receive data from a PHP
I have a Visual Studio 2010 project done on MFC. I receive these errors:
In my project I receive an XmlElement of which I have to parse a
I have this in my test Project.should_receive(:find).with(@project).and_return(@project) but when object receive that method call
i am trying to clone a project from git bash, but receive an error.
I recently have done some refactoring to my project and I receive the following
I have built a simple project which use Winsock Tool. When I receive any
I have converted my CS3 project to CS5, and when I compile, I receive
I have a Biztalk 2009 project with a receive location using a SOAP adapter.
For my side project kwiqi , I use ActionMailer's 'receive' method to process incoming

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.