Requirement: Build a .NET based application that can reads messages at regular interval from a IBM Websphere Message Queue and save those messages in database
My solution: I created a windows service application that polls the Message Queue at certain interval and process the data.
Problem with polling is that application process is delayed by the polling interval. I cannot set the interval too short as I am not sure how much data there will be in the Message Queue and how long it will take to process.
Question: What would be better way to process data from a WebSphere Message Queue using .NET? How will I be able to process the data as soon as arrive in Message queue?
GET
with wait? - T.RobGET
and specifies aWAIT
interval. When a message arrives, there is zero delay because the app is waiting on it. If theWAIT
expires, the app getsRC=2033
and loops back with anotherGET
andWAIT
. However, if an application issues aGET
with noWAIT
, then sleeps for 30 seconds, there is a long delay while the app is asleep. - T.Rob