Replies: 2 comments 3 replies
-
Hi @Nokinori, I have a work-in-progress branch as of last week with the basics working: https://github.com/netflix/dgs-framework/tree/webflux. Query execution works, and there's a WebFlux powered HTTP endpoint, but there are still features missing such as GraphiQL and file uploads. I'm hoping to finish most of that this week. The idea is to use Reactor. I've added a new interface DgsReactiveQueryExecutor, which is basically the same as the existing I've not gone the coroutines way because I don't think it's the best way forward for Java users, although it would be nice for those using Kotlin. Maybe this is something for later, but out of scope for now. |
Beta Was this translation helpful? Give feedback.
-
@paulbakker do you support spring webflux now? I don't see any documentation yet in https://netflix.github.io/ ? |
Beta Was this translation helpful? Give feedback.
-
Hi there!
First of all, I wanted to ask about current progress in webflux support? I can't find any created discussion yet.
Or mb you need some help with that feature?
And about implementation. How it will be done?
With Project Reactor?
val executionResult: Mono<ExecutionResult> = Mono.fromCompletionStage(graphQL.executeAsync(invocationInput))
Or Coroutines with suspend functions?
val executionResult: ExecutionResult graphQL.executeAsync(invocationInput).await()
Also, what is about whole coroutine support? Like suspend functions for
@DgsData
and other stuff.Or it's not the main goal of this task?
About internal implementation.
com.netflix.graphql.dgs.DgsQueryExecutor
provide only synchronousexecute
andexecuteAndExtractJsonPath
methods. So there will be new***Async
or a new interface likeDgsQueryExecutorAsync
?I just want to discus the idea, because there are different ways of implementation )))
Beta Was this translation helpful? Give feedback.
All reactions