GithubHelp home page GithubHelp logo

all4you / redant Goto Github PK

View Code? Open in Web Editor NEW
309.0 27.0 133.0 8.8 MB

A lightweight distributed web container based on Netty 一个基于Netty的轻量级Web容器

License: Apache License 2.0

Java 100.00%
netty http web container

redant's Issues

线程复用了netty IO worker线程以及拦截器异步等

1, 复用worker线程在遇到IO阻塞的时候, 譬如调用三方服务的时候,导致全局阻塞, 需要有线程池进行拆解.
2, Interceptor 拦截器也是基于IO线程复用方式, 一个IO线程仅仅映射一个channel原则, 所以preHandle/postHandle 才可以重用start变量记时有效
3, 异步CompletableFuture如何支持, 通过异步上下文传递.

请教一个问题

我看到了redant里面用到了threadlocal才存放一些重要的信息。对于netty这种异步的框架而言,同一个线程是会处理多个不同的请求的,这样做,是否正确?
我对此有些疑惑,可能是我知识有限,烦请解答一下,谢谢了。

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.