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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:39:09+00:00 2026-06-07T03:39:09+00:00

Alright, so I’m about 90% sure that this isn’t possible, but I thought I’d

  • 0

Alright, so I’m about 90% sure that this isn’t possible, but I thought I’d ask anyway. Maybe I’m missing something.

I’m trying to use WCF over MSMQ with transacted batching. Long story short, I have a queue with possibly even 200-300k messages in it at a time and I need to put them in a database. They ultimately go through Service Broker but only after I do some preprocessing in the MSMQ client.

The idea is to get as many messages as possible (and supported by my infrastructure) at once, pre-process them and then send them in a table variable to SQL Server, where they ultimately go in a Service Broker queue.

With transacted batching I am indeed given N (100, 1000, etc) messages per transaction, but they all come in my WCF client sequentially. So the service operation is called N times, once for each message. The transaction is committed or rolled back by the framework after the operation returns for the last message .

My idea was that it would be more efficient to get them all in a collection and start processing right away the entire collection and also send it to the database.

Doing some kind of trick (like storing them in a static something and once I hit N start processing) is not very nice and I’m trying to avoid.

I don’t have any code to post, because I didn’t write it yet. I’ve done transacted batching before and I tend to believe that this is not possible.

Ultimately I will drop my WCF client and Receive() the hell out of it inside a MessageQueueTransaction, wrapped of course in a distributed transaction (down to SQL Server).

But, do you know of any supported way through which I could get a list and not fiddle with the default distributed transaction created by WCF and also avoid holding anything in static collections?

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-06-07T03:39:10+00:00Added an answer on June 7, 2026 at 3:39 am

    I do not think it is possible either. If you worked with MSMQ directly you’d see you can only get messages one by one.

    Having said that there is a significant difference between WCF (over MSMQ) and MSMQ. First one is push based while the latter is pull based. If you can switch to direct MSMQ it would be easy to pull N messages out of it and process/save in a batch. Programming against MSMQ is much easier than WCF.

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

Sidebar

Related Questions

Alright here is the thing, I have this site that was once wordpress but
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright so I have no idea how to even begin doing this But basically
Alright, I'll try and make this brief as possible. I wanted to a UIToolbar
Alright, I know I've asked similar questions, but I feel this is hopefully a
Alright, this is a little bit complicated. I have a composite control that contains
Alright. This may be difficult but I have been struggling for quite a bit
Alright, I understand that this problem has been asked a lot of times at
Alright. Hopefully this will be my last post about the download manager I am
Alright, I am trying to accomplish this: When a user clicks a button that

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.