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

10th
Apr 2018
weiping
@sophiaso
Apr 10 2018 02:33
Hi, according to the issue here: spring-cloud/spring-cloud-gateway#144
Does that mean we cannot have front controller(web portal) together with Spring Cloud gateway as a single application? As Spring MVC cannot be used together with Spring cloud gateway.
Warning messgae: Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency.
dragontree101
@dragontree101
Apr 10 2018 08:43
hi , spring-cloud-gateway how to rewrite request/response body? i found https://github.com/spring-cloud/spring-cloud-gateway/issues/135#issuecomment-376634813 but don't know when spring-cloud-gateway support this feture
CaiJiahe
@SystemOutPrint
Apr 10 2018 10:06

spring-cloud-netflix-dependencies:2.0.0.BUILD-SNAPSHOT

Why the dependencies version is ${project.version}?

Jagmohan Sharma
@JagmohanSharma
Apr 10 2018 10:22
Hi Team,
Are we having any bug with ConfigurationProperties inner objects rebinding on cloud config changes in spring cloud Finchley.M9 when I am using with spring boot 2 service?
dragontree101
@dragontree101
Apr 10 2018 12:34

if i create bean KeyResolver like this

@Bean
KeyResolver userKeyResolver() {
    return exchange -> Mono.just(exchange.getRequest().getQueryParams().getFirst("user"));
}

but i found RequestRateLimiterGatewayFilterFactory

    @Bean
    @ConditionalOnBean({RateLimiter.class, KeyResolver.class})
    public RequestRateLimiterGatewayFilterFactory requestRateLimiterGatewayFilterFactory(RateLimiter rateLimiter, PrincipalNameKeyResolver resolver) {
        return new RequestRateLimiterGatewayFilterFactory(rateLimiter, resolver);
    }

only use PrincipalNameKeyResolver , how can i use myself KeyResolver ?

dragontree101
@dragontree101
Apr 10 2018 13:10

and set

filters:
   - RequestRateLimiter=10, 20, #{@requestKeyResolver}

requestKeyResolver bean no useful

dragontree101
@dragontree101
Apr 10 2018 13:28
RequestRateLimiterGatewayFilterFactory class not
@Override
public List<String> shortcutFieldOrder() {
    ...
}
it is bug ? how can i set config by yaml?
Jagmohan Sharma
@JagmohanSharma
Apr 10 2018 14:55

Hi Team,
Are we having any bug with ConfigurationProperties inner objects rebinding on cloud config changes in spring cloud Finchley.M9 when I am using with spring boot 2 service?

any help around this?

Spencer Gibb
@spencergibb
Apr 10 2018 15:35
@JagmohanSharma what is the issue?
@dragontree101 looks like a bug
Spencer Gibb
@spencergibb
Apr 10 2018 15:40
@sophiaso gateway cannot be combined with spring mvc, but spring webflux controllers still work
@SystemOutPrint what's wrong with ${project.version}?
Jose Armesto
@fiunchinho
Apr 10 2018 17:05
any ideas on my SO question @spencergibb ?
Spencer Gibb
@spencergibb
Apr 10 2018 17:08
@fiunchinho commented, I don't have time at the momemnt for a full answer
Jose Armesto
@fiunchinho
Apr 10 2018 17:09
ok, waiting for the full anwser then, thanks!
玹霖
@SoftwareKing
Apr 10 2018 17:34
@spencergibb @ryanjbaxter spring-cloud/spring-cloud-openfeign#14
lakshmipolu
@lakshmipolu
Apr 10 2018 19:53
@
Spencergibb This is Srilakshmi from Optum
We are planning to use routing gateway for our api,s so thought SCG is best option
Spring cloud Netflix or ScG ?which is the best option?
Spencer Gibb
@spencergibb
Apr 10 2018 22:04
@lakshmipolu do you want to support long lived connections and/or websockets?
lakshmipolu
@lakshmipolu
Apr 10 2018 22:50
Yes
Exploring o
Exploring on these as well.Looking into pros and cons