Skip to content

基于nio reactor模式的轻量级server. 接受请求分发请求和netty类似,展示了netty接受和分发请求的过程。每9秒可以处理10万请求

License

Notifications You must be signed in to change notification settings

majinliang123/nio_reactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIO Reactor

About

  • A Nio server, use multi reactor pattern like netty.
  • Could process 100,000 request in 9 seconds.

Design

  • There is a acceptor to listen connection from client
  • when acceptor get a connection, it will dispatch to processors
  • There are a lot of processors to process a connection. And each processor corresponding to a thread.
  • Every socket channel from acceptor will be registered on the selector of processor.

About

基于nio reactor模式的轻量级server. 接受请求分发请求和netty类似,展示了netty接受和分发请求的过程。每9秒可以处理10万请求

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages