Dynamic config with spring Boot - Microservice configuration with Spring Boot [13]

preview_player
Показать описание

Learn how to update config values in your microservices at runtime without having to restart them. Learn how to use Actuator endpoints to trigger refresh and use the RefreshScope annotation to have the values refresh in the microservices.

#JavaBrains #Microservices #SpringBoot #Configuration #Course
Рекомендации по теме
Комментарии
Автор

Now i can mention i know microservices in my resume😂 Great Thanks Kaushik.

easwargaming
Автор

Thanks a lot Kaushik. There are materials and tutorials everywhere but the depth and details of understanding the concepts that I get here are simply amazing.

gauravmam
Автор

December 2020: After Spring Boot 2.4.0/Spring Cloud 2020.0.0-M5 you need to include the dependency and create a bootstrap.yml with the spring application name, spring cloud config uri and the management endpoints web exposure include property there

maurov
Автор

Hey kaushik.... Because of you so many things are easy to learn.... Many many thanks to you make a wonderful video and make a easy to work in It industry.. 🙏🙏🙏🙏🙏

royalvivek
Автор

@9:54 I see "config.client.version". but the key "my.greeting" is not showing up. If I delete my spring-boot.config.yml and just use the default everything works. But If I have specific microservice config file.... things don't get udated. Anyone experiencing the same problem?

ohhhgggeeezzz
Автор

This is really convoluted. Thank god for good old JMX MBeans.

mirogula
Автор

I think restart microservice is better choice. If we use accuator and @RefreshScope, it have 2 drawbacks: (1) accuator open some hookup API which might lead to security concern. (2) @RefreshScope impact performance a lot. All instances that use the config bean need to refresh ALL of its dependencies, not just the config bean.

nautilus
Автор

God explanation looks simple and easy to understand recommended to everyone to check this out

udit
Автор

Thanks Kousik it is really helping me simple and best.

SunilVerma-gryv
Автор

The refresh scope is not working with microservice.yml file. It worked with application.yml

sameerpande
Автор

Really it's very useful, spring cloud configuration, thanks to provide this kind of knowledge 🙏🙏

pavanmodi
Автор

How would you refresh properties in a Microservice based environment? Like when there are X amount of servers running - and possible them being behind a LoadBalancer

AleksandarT
Автор

Hi Koushik, As you mentioned in the video could you please help us with the git tutorial which covers most of the use cases, especially reverting a merge request, solving merge conflict, and switching over branches without committing(branch specific or unmerged changes).

anshulsatish
Автор

Great videos, what is the best practice to automate refresh without using rest calls?

yevgeny
Автор

Hi, I have a doubt on that @RefershScope. As you say, in our application perspective we are having n number of controller and we are using so many value from the property files. At that if we update the changes in cloud config server, we need to add the @RefershScope in each and every controller. If that is the case then, it will not be nice as we are going to add in 100's of controller if we are having it. Is there any other alternative, like if we want to use it for a entire application, configure it in a place and let all the get uploaded?

elangopadmanabhan
Автор

You are Awesome Bro You are A Hero You ROCK THE WORLD BRO YOU ARE SUPER AND THE BEST

mohammedshabbirahmed
Автор

is there security control over who can call the refresh end point?

rossxie
Автор

Is there a good way to automate sending the POST request after making changes to the config server? Perhaps through Jenkins or something of that nature.

StyleTrick
Автор

question: in case i have multiple micro services instances for my service, then how do you call /refresh, because if we have 5 instances then though you call /refresh it calls only one instance.
any idea whats the solution for this use case??

chandrasekharreddyp
Автор

hi kaushik i am eagrly waiting for API GateWay, kindly upload asap

Aapla_Institute