gpt4 book ai didi

spring - 为什么 Spring Web Flux 将处理程序分派(dispatch)到有界弹性计划

转载 作者:行者123 更新时间:2023-12-05 07:14:37 26 4
gpt4 key购买 nike

我发现线程运行我的自定义代码被命名为 [boundedElastic-1]。我知道 spring web flux 使用 netty,我发现 reactor-epoll thread 类似于 NettyEventLoop。我认为我的非阻塞自定义代码应该在 reactor-epoll 线程池中运行,但事实并非如此。我可以为此配置什么吗?

最佳答案

我认为这是 WebFlux 中的一个功能.

根据commentgit blame ,自 Spring 5.2.2 或 Spring Boot 2.2.2 以来,WebSession 将在 Schedulers.parallel() 中创建。

因此,这是一项功能,而不是错误。

关于spring - 为什么 Spring Web Flux 将处理程序分派(dispatch)到有界弹性计划,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59855835/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com