当前位置:网站首页>Stickinengine architecture 11 message queue

Stickinengine architecture 11 message queue

2020-11-06 21:14:00 Dream gamer

The overall overview is    https://my.oschina.net/kkkkkkkkkkkkk/blog/3190865

there Message queue (MessageQueue) It's a little different from the general concept , Here is to solve the problem of multi-channel in the server point-to-point communication .

routine IPC One solution is that there will be a channel between servers (TCP-socket), Come on, double work .

stay StickEngine Add message queue The goal is to enhance the multithreading process IPC performance .

Point to point MQ There are the following Rules and features :

1.RPC One question and one answer mode in the model , They correspond Channel It's the same . The decision is RPC Call the initiator .

2.Channel The load algorithm is rotation training + Current limiting .

3. In the message model ,Channel It may be inconsistent .

4. It's not the same thing Channel There is no guarantee that the message is sequential

5. The basic communication protocol is TCP,Channel Designed for duplex Working mode .

6. As long as there is one Channel You can use , Then I think we should MQ You can use .

 

版权声明
本文为[Dream gamer]所创,转载请带上原文链接,感谢