473,497 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

transaction queues and multi-threading

GT
Hi,

We have a requirement where up to 300,000 messages per hour can be sent to a
queue and these messages need to be both

1. Validated and saved to a sql server 2005 database
2. Translated to a different format and put onto another queue

Due to the large throughput requirment we will have a windows service which
will start up a number of threads to read and process the messages from the
queue. What I need to deal with though is handling failures, if we get a
problem anywhere then we need to rollback and put the message back into the
receive queue.

Failures could occur reading from the queue, writing to the database (via a
number of stored procedures) or writing to the send queue.

I see that I can make my receive queue transactional, but am worried about
the performance impact and how this would work exactly in a multi-threaded
environment since if I understand what I read correctly the message won't
disappear from my receive queue until I commit, so would each of my threads
potentially pick up the same message?

If they could pick up the same message, would synchronization using the Lock
keyword solve this, if so. would this be a good idea or is there something
better ?

We are using .Net 2.0 Any thoughts or suggestions would be really helpful.

Thanks


Jun 23 '06 #1
0 1060

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
7444
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
0
1869
by: Aki Niimura | last post by:
Hello everyone. I'm trying to control a program from a Python program using IPC. Although using a socket is a common choice for such applications, I would like to use SysV message queues...
5
2675
by: Ford Desperado | last post by:
In Oracle, I would handle exceptions like this EXCEPTION WHEN OTHERS THEN -- open up an autonomous transaction -- insert SQLCODE, SQLERRM and stored procedure name into log table -- commit...
13
3241
by: vittal | last post by:
Hi, I have to do a project on C program. I have to do 9 mini-projects. Please guide me through it. 1) Client-Server program using Semaphores, Message queues, Shared memory, Pipes, FIFO,...
4
2748
by: wizard | last post by:
Hello dear friends, I am writing a small program to test transactions in php. But when I try to simulate an error condition during transaction, my php script aborts. It does rollback work, but...
0
7120
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7373
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4897
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4583
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.