These are chat archives for spring-cloud/spring-cloud

7th
Jun 2017
Andrew Fitzgerald
@fitzoh
Jun 07 2017 01:25 UTC

(xposting from pcf slack)

So apparently spinnaker hit 1.0 today: https://cloudplatform.googleblog.com/2017/06/spinnaker-10-continuous-delivery.html

Also, it appears that spring-cloud-spinnaker is not currently active https://github.com/spring-cloud/spring-cloud-spinnaker

Anyone know if there's a decent way to use spinnaker to deploy to PCF nowadays?
Or are all the cool kids just using concourse?

Sushant
@bsushant-athena
Jun 07 2017 09:36 UTC
hi, I want to make sure that every service which registers with my eureka server has a different name, how can I achieve this ? is there any way to capture the eureka registration request ?
Dieter Hubau
@Turbots
Jun 07 2017 14:36 UTC
hello, if I want to use a microservice which would relay messages, how could I do this with Spring Webflux?
I currently have a microservice with a controller signature like this:
@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    public Mono<ResponseEntity<WishResult>> relayWish(Wish wish) {
        return this.remoteResource
            .makeOrder(Order.builder().item(wish.getItem()).build())
            .map(orderResult -> orderResult.getBody() == OrderResult.ORDERED ?
                ResponseEntity.ok(WishResult.GRANTED) :
                ResponseEntity.ok(WishResult.NOT_GRANTED));
    }
and this works perfectly as a “middleman microservice”, it sends back the response to the calling microservice, where I have a signature like this:
@PostMapping(path = "/", produces = MediaType.APPLICATION_JSON_VALUE)
    Mono<ResponseEntity<WishResult>> postOrder(@RequestBody Wish wish);
but on the calling microservice, when it received the response from the middleman microservice, it gives this error: Can not construct instance of reactor.core.publisher.Mono
it seems the Jackson databinder cant bind the response to a new Mono
Dieter Hubau
@Turbots
Jun 07 2017 14:48 UTC
nvm, I just read that Hystrix/Feign functionality is not really working together yet with the Spring Webflux project? Or is this only for the new WebClient?
Dave Syer
@dsyer
Jun 07 2017 15:17 UTC
Hystrix is not well suited to webflux. It does have some RX support, but only via thread pools (no non-blocking)
and the @HystrixCommand (javanica) feature doesn't really even have that