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

1st
Mar 2016
Jose Armesto
@fiunchinho
Mar 01 2016 08:13

that would be how spring profiles works with configuration: application-<springprofile>.{yml|properties} and <springappname>-<springprofile>.{yml|properties}

I can’t get springappname.yml to get loaded :(

only application-<springprofile>.{yml|properties}
If you don’t like application.properties as the configuration file name you can switch to another by specifying a spring.config.name environment property.
Dave Syer
@dsyer
Mar 01 2016 08:15
Did you set the spring.application.name
Jose Armesto
@fiunchinho
Mar 01 2016 08:18
yes, my application.yml is something like
spring:
  application:
    name: config-environments
(I’m testing config profiles, thats the reason of the weird app name :P)
then I have a config-environments.ml with some config value that I want to print out
but I keep getting null
Tommy Ludwig
@shakuzen
Mar 01 2016 08:21
Can you see the value from one of the config server's endpoints?
Jose Armesto
@fiunchinho
Mar 01 2016 08:23
I’m not using any config server, just local yml files
Dave Syer
@dsyer
Mar 01 2016 08:24
Then your not really using any spring cloud features
So that was a bit confusing
Jose Armesto
@fiunchinho
Mar 01 2016 08:25
I see
Dave Syer
@dsyer
Mar 01 2016 08:25
Ask in the #spring-boot room and they will tell you to set spring.config.name (it's a comma separated list)
Jose Armesto
@fiunchinho
Mar 01 2016 08:26
ok, thank you
Dave Syer
@dsyer
Mar 01 2016 08:26
It's also in the Spring Boot user guide
Jose Armesto
@fiunchinho
Mar 01 2016 08:27
so to dynamically update config values while the app is running, you recommend the usage of the Spring Cloud config server
reading the docs seemed like it would automatically notify spring cloud applications when config values changed
Dave Syer
@dsyer
Mar 01 2016 08:27
That's one way
You get notifications if you use the new monitor library
WeGo
@liuxisong
Mar 01 2016 08:31
@dsyer hi dsyer, i pay attention to the spring cloud for some time, but i don't kown which team use spring cloud in production, i have google, but find nothing , it all about SpringOne2GX, cloud you tell me more message about spring cloud in production
forgive my english is poor
Marcos Barbero
@marcosbarbero
Mar 01 2016 11:18
@liuxisong I think there are a lot of people using spring cloud in production, I'll talk about myself. I work for a Brazilian ecommerce - a big one here - it's just migrating from a paid platform to spring cloud solution. There are a lot of approaches to develop with spring cloud, I'm going through spring-cloud-Netflix stack, it's all about distributed systems. Think about microservices architecture, it's not just about breaking functionalities in a lot of services, it's about build a single application splitted in services, having it in mind you'll find out that spring cloud/boot helps you do make things work, it will give you things like: single entry point, security, resilience, monitoring, request tracing, service discovery, configuration management and a lot more.
  • of course microservices aren't just that, but I was not focusing on microservices architectural style at this explanation.