spring-cloud / spring-cloud-cloudfoundry

Integration between Cloudfoundry and the Spring Cloud APIs
Apache License 2.0
80 stars 73 forks source link

Not able to use CloudFoundryAppServiceDiscoveryClient in reactive context #57

Closed srinivasa-vasu closed 5 years ago

srinivasa-vasu commented 5 years ago

If we use DiscoveryClient to make call to getInstances in reactive context (only with webflux), this fails because of the blocking code.

https://github.com/spring-cloud/spring-cloud-cloudfoundry/blob/460fc2652a95677fe6502f0e3e0716c3b23f8fb6/spring-cloud-cloudfoundry-discovery/src/main/java/org/springframework/cloud/cloudfoundry/discovery/CloudFoundryAppServiceDiscoveryClient.java#L76

ryanjbaxter commented 5 years ago

You can follow along here as we work through this https://github.com/spring-cloud/spring-cloud-commons/issues/557