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