While making the following call http://localhost:8080/test for the the TestController I was not able to get more the 6 responses from the server in parallel. The requests just keep waiting for the request I made before to finish. Is there a way to increase this number per API(Controller)?
TestController
@RestController
@RequestMapping("/test")
class TestController() {
@GetMapping(produces = [MediaType.TEXT_EVENT_STREAM_VALUE])
fun test(): Flux<String> {
return Flux
.interval(Duration.ofSeconds(1))
.map { t -> "test $t"}
}
}
Number of CPUs in the machine running the application: 8