GithubHelp home page GithubHelp logo

Comments (1)

a2888409 avatar a2888409 commented on July 19, 2024

之所以需要额外的工作线程是由Netty的线程模型决定的,通常来说,对于比较复杂耗时的业务逻辑不推荐在接收消息的IO线程,即pipeline内的handler处理,这样可能会造成任务的阻塞。
IO线程通常只处理比较简单的任务,workers工作线程可以用Netty提供的DefaultEventExecutor或者自带的其他线程池实现替代,他们的作用是相同的,都是作为工作线程池处理任务。
IO线程和工作线程的分离,能够充分的保证异步,高效的执行任务。

from face2face.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.