Avoid ASYNC dispatch if possible in DefaultAsyncServerResponse #32223
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Spring for GraphQL relies on the GraphQL Java
AsyncExecutionStrategy
as do most other solutions. However, the actual handling in some cases may return immediately without the need for blocking. For such cases, the ASYNC dispatch could be avoided to reduce overhead.We are going to make a change spring-projects/spring-graphql#904 in Spring for GraphQL to call
ServerResponse.async(future)
conditionally, only if the future is not done, but this might be more generally useful.This issue is to explore whether similar conditional logic could be done within the call to
ServerResponse.async
.The text was updated successfully, but these errors were encountered: