简体   繁体   中英

How MSMQ will work?

Hi anybody know how MSMQ work with c#? I got a small problem Actually i need to enter 10 urls in a queue and want to execute at 10 different time spans automatically.

Will it possible by using MSMQ with C# or is there any other technique is there?

Please suggest me how to do it

Thanks in advance

If your goal is to create a bulk downloader, I had a lot of success (5000+ sites per minute) with the Concurrency and Coordination Runtime . CCR has fairly rugged scheduling capabilities, and helps to deal with the nasty threading issues that invariably arise from async IO. Jeff Richter kindly provides a set of wrappers for WebRequests.

It's hard to understand, but very rewarding when you do.

I wouldn't have considered MSMQ for this. Why do you?

MSMQ is a product that is most of the time used to achieve reliable messaging between applications running in different machines. It can also be used between application running in the same machine but is less common, but the objective is the same. Some application puts a message in a queue and sometime later another application fetches the message.

I don't know exactly what you want to achieve, but probably you can manage using the Queue class and some threads and timers. Maybe it's overkill, but the open source schedule Quartz might also help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM