spring-cloud-alibaba how to integrate spring webflux and dubbo

new9mtju  于 4个月前  发布在  Spring
关注(0)|答案(1)|浏览(117)

i have some webflux based service, provide external service interface. how to integrate these services with dubbo service provider?

w7t8yxp5

w7t8yxp51#

because webflux method return mono or flux, can i use dubbo async call like this?
`
dubboService.call();

var future = RpcContext.getContext().getCompletableFuture();
return Mono.fromFuture(future);
`

相关问题