Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know much about MSMQ?

Status
Not open for further replies.

lsmyth1717

Programmer
Mar 25, 2005
44
GB
I've been asked to go away and look at Microsoft Message Queue server for sending messages behind the scenes.
Has anyone used this before?
What do they think of it?
Is there any other ways of doing this kind of thing using the event log? If so has anyone got any good links to sites with information about this?
Any help or sample code to create a queue and read things from it would be very much appreciated.
Cheers
 
MSMQ is typically very reliable. You write a message at one end and read it from the other end. My advice would be to keep it simple -- don't try and use the fancy features -- just write and read is all you need.

We used it at my last job for event logging. All the machines in the data center (50+) would write event records to a queue, and we had a clustered server that would read from it and write them to the event log database. Since MSMQ orders the records in the order they were written to the queue, we had a good idea of the order in which the events were written. We wrote about 1gb of event data each day.

Note that this is different from the NT EventLog, which is local machine only. We only wrote to the NT EventLog when message queuing went down (rare), and then only the most serious events (to keep the volume down to where the NT EventLog wouldn't be overwhelmed).

MSDN has some good code samples.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top