-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSE能支持服务端异步吗? #1525
Comments
Java-Chassis的异步资料在这里,Java-Chassis叫这种模式 "Reactive" |
不用。 java-chassis的运行机制和SpringMVC不同。 默认情况下,java-chassis的业务执行都是在独立线程池执行,不占用http请求。 不需要 可以通过设计、线程池模型和Spring Boot集成了解运行时差异 |
你们可能没理解我的意思,我是想长任务立马返回Null给客户端,释放HTTP连接。因为我只要确保服务调用了,不关注结果。 |
你说的这种方式目前没提供。可能需要你自己写一些代码将逻辑放到自己的线程池执行,并立即返回一个结果。 |
Close old issues. Please feel free to open a new one. |
类似于SpringMVC的@async注解,长时间运行的服务,不需要返回值。
AsyncRestTemplate支持客户端异步,实际还是占用Http请求,客户端服务端保持连接。
没找到相关的说明,难道一定要在服务端代码里面自己放到异步队列?
The text was updated successfully, but these errors were encountered: