高性能IO之Reactor模式

The reactor design pattern is an event handling pattern for handling service requests delivered concurrently by one or more inputs. The service handler then demultiplexes the incoming requests and dispatches them synchronously to associated request handlers.

 

单线程模式

1

多线程模式

1:n

主从模式

n:n

 

netty采用了主从模式

 

 

ref:

https://www.cnblogs.com/doit8791/p/7461479.html

https://www.jianshu.com/p/128ddc36e713

https://www.jianshu.com/p/38b56531565d

https://blog.csdn.net/qq924862077/article/details/53316490

 

高性能io

https://www.cnblogs.com/fanzhidongyzby/p/4098546.html

https://www.jianshu.com/p/2965fca6bb8f

https://mp.weixin.qq.com/s/L5UJhJqquM7OQYFu648JSw

posted @ 2018-10-26 15:12  人在江湖之诗和远方  阅读(224)  评论(0编辑  收藏  举报