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

10th
Dec 2018
Sushant
@bsushant-athena
Dec 10 2018 02:06
Hi, I'm working on autoscaling and during downscaling scenario I'm making my service as OUT_OF_SERVICE but I'm still getting 503/404. So how much time it takes to set service status out_of_service , is it instant or like 3 heartbeats ?
Olga Maciaszek-Sharma
@OlgaMaciaszek
Dec 10 2018 11:01
@prog20901 this slack channel is dedicated to Spring Cloud- related questions only
Duarte Santos
@duartesantos
Dec 10 2018 11:08
I have spring cloud microservices that expose REST API and I need to capture the requests/responses, create an event object and stream somewhere (maybe using kafka). This data will be used for reporting. Anyone knows something under the spring umbrella that can help me to achieve this?
p.s: Intention is to be reused among different microservices of same same nature.
Olga Maciaszek-Sharma
@OlgaMaciaszek
Dec 10 2018 12:15
Hello @duartesantos Have you considered using Spring Cloud Stream (https://cloud.spring.io/spring-cloud-stream/) ? It's a really convenient abstraction for messaging; it integrates with various brokers, for example Kafka and Rabbit MQ.
Duarte Santos
@duartesantos
Dec 10 2018 12:18
Hi @OlgaMaciaszek, yes, I am considering it for the event stream part. I am seeking for an idea on the capture of request/responses for the REST API endpoints..
Alex Krause
@alex0ptr
Dec 10 2018 12:30

Hey everyone. I've got a Spring Cloud Gateway (2) application and am trying to get zipkin to work over sleuth. However the headers are not added to downstream reqeusts... I have the maven dependency (Greenwich.M2) for zipkin starter and my application.yml has:

spring:
  sleuth:
    enabled: true
    sampler.probability: 1
  zipkin:
    enabled: true
    base-url: replace_me

Any idea where I should dig? I'm kinda lost.

Marcos Barbero
@marcosbarbero
Dec 10 2018 12:34
@bsushant-athena it will take the 3 hearbeats, you can implement a retry policy to avoid such behaviour
Hi @alex0ptr maybe a question for sleuth channel? https://gitter.im/spring-cloud/spring-cloud-sleuth
Alex Krause
@alex0ptr
Dec 10 2018 12:53
@marcosbarbero Good idea. Thanks.
Bambus
@vlatk0o
Dec 10 2018 13:24
Does anyone has experience with Spring Config Server without git?
Christophe Bornet
@cbornet
Dec 10 2018 14:48
Hi all. From your opinion, is there any interest in using spring-cloud-netflix-concurrency-limits in the context of Webflux ? From what I understand, Webflux applies backpressure on the TCP connection that propagates it through its own congestion mechanism. So the interest of another congestion mechanism at the app layer seems limited, isn't it ? Or is an app layer one better ?
Spencer Gibb
@spencergibb
Dec 10 2018 16:12
I think the difference is that concurency limits is across multiple connections rather than a single one for webflux
Christophe Bornet
@cbornet
Dec 10 2018 16:43
I think the TCP congestion control takes all connections into account (with slow start), doesn't it ? Anyway, I see that the Netflix concurrency algo can do some QoS on known batch and spiky traffic so that's at least an interesting app level feature !
Spencer Gibb
@spencergibb
Dec 10 2018 16:59
concurrencly limits also allows arbitray sharding
Christophe Bornet
@cbornet
Dec 10 2018 17:09
yes, that's nice feature ! Thanks for your answers btw !