473,414 Members | 1,628 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

MySQL queue/messaging

Hi.

I would like to implementation an application that will connect to a
MySQL DB and just monitor a table if a new row is being inserted. If a
new row was inserted a sub_method will be triggered. Otherwise, the
application will just be idle. Can this be done with MySQL?

Thanks!

Nov 24 '05 #1
1 3745
kd*******@gmail.com wrote:
Hi.

I would like to implementation an application that will connect to a
MySQL DB and just monitor a table if a new row is being inserted. If a
new row was inserted a sub_method will be triggered. Otherwise, the
application will just be idle. Can this be done with MySQL?


MySQL has no event mechanism. You could have the client application
that performs the insert notify other clients. Or you could have the
monitoring client check periodically for new records, sleeping in
between. This is sometimes called "polling".

If the table it is monitoring has a lot of records, checking for new
entries is costly, so it might be better for the client that does the
insert to also post a record to a separate table, to indicate that a new
record has been added. The monitoring client watches this table, and
delete records as it processes them. This keeps the table shorter, and
therefore polling it is less costly.

Regards,
Bill K.
Nov 24 '05 #2

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

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
0
by: Jörn Petersen | last post by:
Hello NG! I've been playing a little with Multiple-Destination Messaging in MSMQ using multicast addresses. I'm trying to assign a multicast address to a queue with C# code (using a...
1
by: tiger | last post by:
Hi, I have a question on Microsoft Message Queue. How do I give higher priority to messages and get it process before others. I will like to use the mechanism supplied by the queue service...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
by: Andy | last post by:
I am trying to use the Microsoft Messaging Queue for an application I am writing. I am able to create, push and pull messages with this app. The problem right now though is: my "pull / pop" of...
0
by: Eugene Anthony | last post by:
First I leave the server running. Then I open up the client and click the button to send a message to the queue. So when I check the queue its empty. Possible because all the message in the queue...
2
by: Eugene Anthony | last post by:
I am having a problem with my try and catch found in the code bellow. It never works when there is no msg in the queue. The code bellow is to read and process one message at a time. Upon completing...
2
by: mirin | last post by:
From my ASP.NET 2.0 web application running on a Windows 2003 server, I want to write a message to a WebSphere messaging queue running on a UNIX Solaris machine. I have the destination hostname,...
0
by: thajudeen | last post by:
Hi , I am able to send a text file (.txt) to a message queue (MSMQ). But i am not able to receive the .txt file from the message queue. Please help how to proceed. I am Using BodyStream...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
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,...
0
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...

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.