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

22nd
Jul 2016
Ali Moghadam
@alighm
Jul 22 2016 00:04
I apologies, I just realized I spelled your name wrong Sir. It’s Spencer. Again so sorry!
Marcos Barbero
@marcosbarbero
Jul 22 2016 00:29
Is there a way to define the DLQ’s name on stream rabbitmq?
Also, is there a way to define the routing-keyor exchange type on bindings properties?
Spencer Gibb
@spencergibb
Jul 22 2016 00:38
@alighm np, I'm out until the end of and then I'm off to spring one. Spring Cloud Consul has ribbon integration already. If you need KV client, a ConsulClient is autowired.
Ali Moghadam
@alighm
Jul 22 2016 02:52
I'll be coming to SpringOne as well. See you there!
@spencergibb thank you for the response. I know that Ribbon is integrated with Spring Cloud Consul, my question is how can Ribbon return back more data than the instance (I.e key/value )
than *just
Ali Moghadam
@alighm
Jul 22 2016 05:03
@dsyer @spencergibb would ConsulRibbonClientConfiguration be the right place to look at and alter to have Ribbon not only give back the server but also key/value from consul (where key matches the service name)…?
Ali Moghadam
@alighm
Jul 22 2016 05:31
I would say what I am looking for is a interceptor
Ali Moghadam
@alighm
Jul 22 2016 05:51
actually with a bit of more investigation, I believe I am able to achieve what I was looking for with the usage of the ConsulClient and feign.RequestInterceptor. Appreciate it guys!!
Włodzimierz Rożkow
@rozhok
Jul 22 2016 07:20
@ryanjbaxter could you please share something about features related to canary?
Marcos Barbero
@marcosbarbero
Jul 22 2016 14:02
is there a reason to spring cloud stream rabbitmq on method RabbitMessageChannelBinder#doBindConsumer creates a TopicExchange instead of a DirectExchange?
KenavR
@KenavR
Jul 22 2016 18:03
hi, in a microservice setup (zuul, eureka) do I need to setup cors filters for every microservice or should it be enough to add one to the gateway configuration (zuull) ?
KenavR
@KenavR
Jul 22 2016 18:18
Ok got it working, guess adding the filter to the gateway doesn't do anything, I had to add it to the MS
Ali Moghadam
@alighm
Jul 22 2016 18:19
@KenavR so your conclusion is that the CORS filter has to be there for all Services and not just Zuul correct?
I haven’t gotten to use Zuul yet but I do have the CORS filter set in http.addFilterBefore ChannelProcessingFilter for all my services
KenavR
@KenavR
Jul 22 2016 18:28
By "for all my services" you mean you added it to every service?
Ali Moghadam
@alighm
Jul 22 2016 18:35
I have a base jar that has a Security Config called BaseSecurity. That class has the filter added to the http.addFilterBefore. My services all have the base jar as a dependency. Any new feature that we introduce, will go to the base jar so that all services get. I hope that makes sense...
so technically all my services have it but I don’t have to manually add it myself
KenavR
@KenavR
Jul 22 2016 18:36
ah yeah that's great. Did you also add model classes or similar stuff to that jar or just configuration?
Ali Moghadam
@alighm
Jul 22 2016 18:37
I’m building a framework :-)
so It’s having hystrix, config, swagger and other cool things :-)
I’ve also introduced a CLI so that our developers can use to create a sample microservice which will generate a template for them that has the base jar added by default as a dependency
the sample service has all the spring layers along with sample classes in each layer. You can just run the sample project and you get hystrix, config service integration, it being a resource server, swagger and etc out of the box
makes sense?
KenavR
@KenavR
Jul 22 2016 18:40
sounds great, I am new to the entire MS concepts and the netflix OOS "libs" I could've used a CLI ;)
Ali Moghadam
@alighm
Jul 22 2016 18:40
you’re in the right place! Spring Cloud is just amazing!!
KenavR
@KenavR
Jul 22 2016 18:41
I haven't used swagger and hystrix configuration is also currently missing