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

  • Home
  • SEARCH
  • 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 59239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:58:26+00:00 2026-05-10T17:58:26+00:00

I need to queue events and tasks for external systems in a reliable/transactional way.

  • 0

I need to queue events and tasks for external systems in a reliable/transactional way. Using things like MSMQ or ActiveMQ look very seductive, but the transactional part becomes complicated (MSDTC, etc).

We could use the database (SQL Server 2005+, Oracle 9+) and achieve easier transactional support, but the queuing part becomes uglier.

Neither route seems all that great and is filled with nasty gotchas and edge cases.

Can someone offer some practical guidance in this matter?

Think: E/C/A or a scheduled task engine that wakes up every so often and see if there are any scheduled tasks that need running at this time (i.e. next-run-date has passed, but expiration-date has not yet been reached).

  • 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. 2026-05-10T17:58:27+00:00Added an answer on May 10, 2026 at 5:58 pm

    our system has 60 computers, each running 12 tasks (threads) which need to ‘get next job’. All in all, it comes to 50K ‘jobs’ per day. do the math of how many transactions per minute and realize task time is variable, so it is possible to get multiple ‘pop’ events at the exact same time.

    We had our first version using MSMQ. conclusion: stay away. While it did do just fine with the load and synchronization issues, it had 2 problems. one annoying and one deal breaker.

    Annoying: as Enterprise software, MSMQ has security needs that just make it one more thing to set up and fight with the customers network admin.

    Deal breaker: then came the time we wanted to take the next job, but not using a simple pop but something like ‘get next BLUE job’ or ‘get next YELLOW job’. can’t do it!

    We went to plan B: Implemented our own Q with a single SQL 2005 table. could not be happier

    I stressed test it with 200K messages per day, worked. We can make the ‘next’ logic as complicated as we want.

    the catch: you need to be very careful with the SQL that takes the next item. Since you want it to be fast and NON locking. there are 2 very important SQL hints we used based on some research. The magic goes something like this:

    SELECT TOP 1 @Id = callid FROM callqtbl WITH (READPAST, XLOCK) where 1=1 ORDER BY xx,yy 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a win32 library and I need to implement a producer-consumer queue using
I need to create a PRIVATE message queue on a remote machine and I
I need to use a priority queue in my Python code, and: am looking
I have a Queue object that I need to ensure is thread-safe. Would it
I have a list/queue of 200 commands that I need to run in a
Need a way to allow sorting except for last item with in a list.
Need to an expression that returns only things with an I followed by either
I would like to spawn off threads to perform certain tasks, and use a
I'm using Beanstalkd message queue for ffmpeg processing video in my project. I use
When using SendGatewayMessage it can sometimes fail if the Maximum number of events to

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.