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

22nd
Feb 2019
Spencer Gibb
@spencergibb
Feb 22 16:02
@rajeevjha2k4_twitter not sure this is the right room for that
@senzzzi I'm unsure why you'd do that. reactor netty by default only has the same # of threads as # of cores
@mmenard-bbc you may need a custom reactor-netty HttpClient bean, not sure
Rajeev Jha
@rajeevjha2k4_twitter
Feb 22 16:07
@spencergibb I might have not put it in details. What I mean here for HA Database failover solution using Spring cloud- using Hysteric Circuit breaker.
Maxime Menard
@mmenard-bbc
Feb 22 16:08
@spencergibb that's what I guess, trying to override HttpClient
Can I just extend the one created by spring cloud gateway ? I know it's not really a spring-cloud-gateway question ..
Spencer Gibb
@spencergibb
Feb 22 16:09
@rajeevjha2k4_twitter I'm unsure if a circuit breaker at a db level makes sense. Wouldn't something db native make more sense? There's all sorts of consistency issues to deal with
@mmenard-bbc just @Bean with return type of HttpClient
Maxime Menard
@mmenard-bbc
Feb 22 16:11
but then how can I use the one created by spring-cloud-gateway and just add methods related to keyStore ?
Spencer Gibb
@spencergibb
Feb 22 16:11
I don't think you can. It's one or the other.
Maxime Menard
@mmenard-bbc
Feb 22 16:12
hmm ok so until it will be supported in spring-cloud-gateway, I will create a new HttpClient
thanks
Spencer Gibb
@spencergibb
Feb 22 16:12
@mmenard-bbc is there an open issue? If not can you create one?
Maxime Menard
@mmenard-bbc
Feb 22 16:12
sure
Rajeev Jha
@rajeevjha2k4_twitter
Feb 22 16:19
@spencergibb yes that’s correct for db native for data consistency must be something like maxScale for MariaDB. what I mean here maxScale must be one service which manage DB cluster(master slave). What I am looking- If one maxScale service down , spring cloud based application must handle fail-over to connect to other MaxScale service based dataSource.
Spencer Gibb
@spencergibb
Feb 22 16:20
I've not seen a circuit breaker used for that. I circuit breaker isolates a whole subsystem (all instances) if it opens. It doesn't do retry.
Maxime Menard
@mmenard-bbc
Feb 22 16:26
@spencergibb all good, I created my own custom HttpClient and mutual SSL is working ! I will create an issue in github
Spencer Gibb
@spencergibb
Feb 22 16:26
:+1: PRs welcome as well!
Maxime Menard
@mmenard-bbc
Feb 22 16:27
;)
Archimedes Trajano
@trajano
Feb 22 23:20
@jabrena I think the best example for me would be from Spring CLoud Netflix Zuul to Gateway that caused so much headaches and learning opportunities