C # to solve the concurrent design ideas

Solve the concurrent program, application scenarios, a registration method, but to limit the number of applications:
First, if the stand-alone version, is to deploy a server site, we can use the classic lock lock, or queue queue for stand-alone
two If the site is deployed cluster
1, "we can take advantage of the characteristics of single-threaded redis, the definition of a redis value and sent to fetch this value to determine the number of people
2" using the Microsoft MSMQ queue kafka, rabbitmq or specific implementation logic :
1, the registration method of inserting queue
2, write a window service, to perform queue, registration

Guess you like

Origin www.cnblogs.com/May-day/p/12059227.html