admin管理员组文章数量:1296401
I have spring reactive graphql application which gets data from multiple backend service. One single request is almost for 15k ids and the response payload is approx 100 MB.
The problem is with the performance. could see return getting executed but after that it takes almost 3 to 4 seconds for further processing like serialization, compression and other. I tried to use wiretap and found that between WRITE and FLUSH it takes almost 4 seconds. I increased the buffer size as well using below code but still the same issue. Tried different things but it didn't work.
Streaming is not an option as the client doesn't support it.
Any help is much appreciated! Thanks!
@Configuration
public class WebFluxConfiguration implements WebFluxConfigurer {
@Override
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer)
{
configurer.defaultCodecs().maxInMemorySize(50 * 1024 * 1024);
}
}
本文标签: spring bootSpringboot WebfluxStack Overflow
版权声明:本文标题:spring boot - Springboot Webflux - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741620654a2388789.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论