Spring Cloud Config Server with Example in a Spring Boot App | Tech Primers

  Рет қаралды 77,842

Tech Primers

Tech Primers

Күн бұрын

Пікірлер: 132
@SrikarReddyAc
@SrikarReddyAc 7 жыл бұрын
Great explanation and easily understandable. Like BGM playing when explaining.
@ammabalasimha
@ammabalasimha 5 жыл бұрын
Hi Bro..I am really thankful to you as I have started spring cloud, microservices and spring boot with your videos... I learned spring cloud basics just because of u..Got confidence to build microservices...Thanks alot..
@amoldalvi1040
@amoldalvi1040 5 жыл бұрын
one of the crisp and clear demo I ever heard on any particular topic. Thanks a lot. Just wanted to mention that when I wanted to refresh client, it does not work with localhost:8080/refresh. Instead, It worked with localhost:8080/actuator/refresh. I am beginner in actuators so don't know why it worked like that.
@srikanthb4387
@srikanthb4387 5 жыл бұрын
GREAT EXPLANATION AND EASILY UNDERSTANDABLE, I really like your videos very much, Back ground music is really disturbing sometimes it is dominating your voice, PLEASE take care of BGM, one or two people may like it but not all.
@ratneshchouhan6
@ratneshchouhan6 3 жыл бұрын
@TechPrimers When I'm sending POST request using Postman I'm getting 404 any idea ? { "timestamp": "2021-05-17T23:10:03.950+00:00", "status": 404, "error": "Not Found", "message": "No message available", "path": "/refresh" } Actuator is available in pom.xm.
@lokeshkumarrathinave4645
@lokeshkumarrathinave4645 6 жыл бұрын
Cool dude.. Its pretty simple and well explained for beginners. first time seeing your tutorial and impressed.
@channuk1
@channuk1 7 жыл бұрын
Good tutorial. Good explanation and demo of the architecture, usage of spring-cloud annotations and the code. Thank you.
@TechPrimers
@TechPrimers 7 жыл бұрын
thanks channu.
@VRRM
@VRRM 7 жыл бұрын
Can you do a video on Oauth 2 with angular front end with two are pages navigation to propagate the token to services?
@LivenLove
@LivenLove 6 жыл бұрын
spring cloud server code is not present in the git repo, can u please add it?
@parthapratimbaral4310
@parthapratimbaral4310 2 жыл бұрын
Can you create a sample with same but configuration should fetch from database
@kaipulla77
@kaipulla77 7 жыл бұрын
It was a clear video! Thank you! could you please reduce the volume of the BGM or you dont even need that sound, little disturbing! You are doing great man, keep it up! Thank you again!
@TechPrimers
@TechPrimers 7 жыл бұрын
+kaipulla77 sure. Thanks dude
@at3655
@at3655 4 жыл бұрын
Hi I want to do poc on spring cloud config server using docker?? Please can you help me about this
@VikashSingh-gq9dd
@VikashSingh-gq9dd 4 жыл бұрын
How client knows there is change is git repository and call refresh ?
@dowlathbashag65
@dowlathbashag65 4 жыл бұрын
Hi Vijay, have an query regarding git repo and refresh scope ...please correct me how in production it will work...if i made some changes in property file , as per @RefreshScope annotation , need to run the url ( ie refresh url ) in postman then it will reflected in Browser. or it will work in production env. Pls suggest / inputs needed for this scenario. Thanks in advance for your explanation.
@JameS00989
@JameS00989 3 жыл бұрын
Amazing cleared my concept thanks 🙏
@MohaideenA
@MohaideenA 6 жыл бұрын
QQ:- localhost:8084/actuator/refresh is not working when I enabled Spring security , getting a 403 error , this same case happened when I access h2-console enabling spring security. Any work around ?
@ThrivikramayaSivaRaja
@ThrivikramayaSivaRaja 6 жыл бұрын
Excellent! Many thanks Please don't mix background music, its really distracting.. all the videos are really good. But please take care of this.
@anirbanroy1524
@anirbanroy1524 6 жыл бұрын
Excellent awesome. This should be sufficient enough to work on similar project
@pankajkumar-ui3oi
@pankajkumar-ui3oi 6 жыл бұрын
clear explanation in simplicity
@mohkharma
@mohkharma 6 жыл бұрын
excellent explanation! many thanks Please mute the background music :)
@rajanivardhireddy177
@rajanivardhireddy177 5 жыл бұрын
How you can maintain different versions of config server for same app with different version?
@cpsarathe
@cpsarathe 5 жыл бұрын
Precisely Great. Nice Music
@karthiks3203
@karthiks3203 5 жыл бұрын
The BGM is really refreshing, there is no other youtube channel which offers tech content with BGM, subscribed for that!!! Please do not remove it.. Very good explanation on cloud config. Have started seeing your other videos too. Well done Man!!! A query on spring cloud config - High availability. Is it possible to have more than one instance of spring cloud config up and running, referring to a single repository. This is for high availability, even if one is down, other would still be functional..
@TechPrimers
@TechPrimers 5 жыл бұрын
Yes you can configure another instance
@annkit87
@annkit87 3 жыл бұрын
Thanks for the amazing content. I have some of the legacy java servlets based apps without spring architecture but require to use single place for their configs. How we can use similar approach in those apps? Or How we can make them config client to interact with config server?
@anirbanroy1524
@anirbanroy1524 6 жыл бұрын
Excellent presentation. Great learning
@mullamurivenkatakumar3215
@mullamurivenkatakumar3215 4 жыл бұрын
can we get secrets and config maps from git repo to config client ?? through cofig server ??? pls explain me that Sir
@TechPrimers
@TechPrimers 4 жыл бұрын
Secrets should never be stored in Repository. They should be stored in Vault and retrieved from the vault when required. Config maps with config server solution is not available right out of the box, but you can have a side car perform the job of config server and load into config maps
@krish264u
@krish264u 7 жыл бұрын
Great videos and clear explanation. Thanks a ton, it helped me a lot.
@TechPrimers
@TechPrimers 7 жыл бұрын
+Krishnaraj Sooji my pleasure Krishnaraj. Glad that was helpful
@kashif3720
@kashif3720 6 жыл бұрын
Great effort! Just one concern, what 8f I would have to configure multiple properties like client.properties, db.properties etc
@balamurugansethuram701
@balamurugansethuram701 6 жыл бұрын
/refresh is not working. Not sure of the reason.
@rohitbuddabathina
@rohitbuddabathina 5 жыл бұрын
For datasource properties it's not working..is there a way to use datasource properties from cloud config?
@TechPrimers
@TechPrimers 5 жыл бұрын
It won't because Datasources are refreshed only during the process startup. It's a costly operation to do connection reinitialisation. You have to override Datasource creation at your app level to achieve it
@rohitbuddabathina
@rohitbuddabathina 5 жыл бұрын
@@TechPrimers ohh okay, thank you 🙂
@rahotmanp5212
@rahotmanp5212 3 жыл бұрын
Good Explanation, how do we differentiate with different profiles like DEV, Integration, Certification and Production
@aayanmovierrr2790
@aayanmovierrr2790 5 жыл бұрын
very nice video and explanation.just one concern last step "localhost:8981/refresh" is not refreshing.i am using spring boot 2.2.2.any idea??
@amirchoubani5001
@amirchoubani5001 6 жыл бұрын
I think the config server folder in github does not exist any more.
@premierde
@premierde 7 жыл бұрын
The spring-boot client does not work it won't fetch the properties, if you remove spring-web dependency. Change ur client to jms client and not a Rest client. (Spring-boot jms client does not need spring-web). Can you try with jms client?
@commonman8540
@commonman8540 4 жыл бұрын
very clear, thank you.
@chandanbharadwaj7480
@chandanbharadwaj7480 7 жыл бұрын
Very good explanation. Thank you!! I have a couple of questions. 1. how can I change the property values for the beans which are in @Configuration class ? (for eg: any db config ) 2. Can't we automate the /refresh endpoint, instead of doing post request every time?
@TechPrimers
@TechPrimers 7 жыл бұрын
+Chandan Bharadwaj 1. You can just inject the @Bean with connection factory and inject properties and override in the connection factory. You can example in the internet. 2. If we add refresh in regular intervals, it's not efficiently used. The refresh can be used only when the properties got changed. Most of the time property change is not going to happen very often. So it makes sense to do the refresh only when required
@virtexamit
@virtexamit 7 жыл бұрын
Another great work by you. Can you also cover these question please. What happen when (1) you have multiple config server, (2) we are using github instead of local git and (3) multiple user can update that config. How changes from github server reach to different config server running parallel on different VM's. How does all micro service get latest version of config in your example you have only one micro service but in real world we can have multiple instance of same or different micro services running parallel hitting refresh URL manual is not good option. How does we know IP and port because micro-service come and go based on different KPIs.
@theniteshkumarjain
@theniteshkumarjain 6 жыл бұрын
Nice and simple explanation. But I have a doubt. Say my microservice is deployed in aws with multiple instances. Will the refresh url refresh the changes in all instances?
@TechPrimers
@TechPrimers 6 жыл бұрын
Yes,
@akshaysachdeva6401
@akshaysachdeva6401 5 жыл бұрын
Hi great video, i am trying to deploy the server and client on kubernetes and i want to use the configs from github only and not use config maps or secrets of kubernetes and neither use spring cloud kubernetes . Is there a way to do that??
@kashif3720
@kashif3720 7 жыл бұрын
can we write config client and server in same boot application?
@ramakrishnapvs1624
@ramakrishnapvs1624 6 жыл бұрын
i have a main application with spring boot 2 application with angular 1. can i use config server in same application by adding git details in application.properties? or do i need to create a seperate application for that
@TechPrimers
@TechPrimers 6 жыл бұрын
If the properties are in a separate app, its easier to track versions. If you have it in the same repo, then tacking the version of your app + your properties will be difficult
@virtexamit
@virtexamit 7 жыл бұрын
We do configure our Microservice with discovery server. Is it possible to update our Microservice configure with new discovery server location or adding another one more for balancing load?
@TechPrimers
@TechPrimers 6 жыл бұрын
to make your additional discover service seamless to other microservice, you can do via load balancing. Else if you want to have separate group of services then you can have them separately.
@28kverma
@28kverma 7 жыл бұрын
Can you please upload code for config server; it is not available in the github location mentioned above.
@TechPrimers
@TechPrimers 7 жыл бұрын
you can check out the project - github.com/TechPrimers/spring-boot-config-server-example
@shdigaja
@shdigaja 7 жыл бұрын
There is no code under config-server at that link
@mannu1648
@mannu1648 6 жыл бұрын
Simple , informative and effective , Love ur all tutorials !!! Can you tell me how you opened two projects in separate window in intellijIdea
@TechPrimers
@TechPrimers 6 жыл бұрын
thats the default setting option, you can enable it back to ask everytime you open new project. check setting window and search for opening projects in new window
@rajshekharteertha7054
@rajshekharteertha7054 6 жыл бұрын
enjoyed the cloud knowledge with music.. Thanks
@palashkhatri7820
@palashkhatri7820 6 жыл бұрын
Nicely Explained , Thank you
@JourneyBliss-ks15
@JourneyBliss-ks15 Жыл бұрын
War your using server configuration right?
@MohaideenA
@MohaideenA 6 жыл бұрын
How can we use public git repository instead of local git repository ?
@TechPrimers
@TechPrimers 6 жыл бұрын
you can do like the one mentioned here - cloud.spring.io/spring-cloud-config/multi/multi__spring_cloud_config_server.html
@quangbinhinh7538
@quangbinhinh7538 5 жыл бұрын
Still get error "Could not resolve placeholder" 'xxx' in value '${xxxx}'. Totally disappointed...
@karan6551
@karan6551 4 жыл бұрын
Awesome ❤️❤️❤️❤️🔥
@myjava2844
@myjava2844 4 жыл бұрын
I tired this but getting error while running Config Server PPLICATION FAILED TO START *************************** Description: Invalid config server configuration. Action: If you are using the git profile, you need to set a Git URI in your configuration. If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration. Can you please help
@ILyaCyclone
@ILyaCyclone 6 жыл бұрын
Hello Tech Primers! Could you make config-server available on github? It is not available at the moment.
@thusithanuwan7865
@thusithanuwan7865 5 жыл бұрын
You don't need to restart the client. That's the point right?
@TechPrimers
@TechPrimers 5 жыл бұрын
You are right
@asliyanage
@asliyanage 6 жыл бұрын
why config server can't add Db properties?
@TechPrimers
@TechPrimers 6 жыл бұрын
We can add. however, Data Source creation(DB Connection creation) happens only during the process start. Hence its not a good practice to add DB Properties, because you need to do a DataSource reloading which is a costlier operation while the process is UP and running already
@sumitmehta4306
@sumitmehta4306 6 жыл бұрын
Great Explanation!!!!!
@rexroy4037
@rexroy4037 6 жыл бұрын
simple and clear, thanks for the video.. :)
@narendrareddyd2645
@narendrareddyd2645 6 жыл бұрын
Please remove the BGM that's distracting the concentration . Your videos are really useful thank you
@manishkushwaha4050
@manishkushwaha4050 6 жыл бұрын
Hi My localhost:9991/refresh is not working and giving 404, could you please update me what is the issue, did i miss something ?
@TechPrimers
@TechPrimers 6 жыл бұрын
Is that the port with which u have started?
@murari-goswami
@murari-goswami 6 жыл бұрын
Please do not play background music, sometime annoying a lot. Thanks for the demo though
@lavanyav8748
@lavanyav8748 5 жыл бұрын
BGM is very disturbing, kindly avoid. Good explanations and we would like to get benefitted from your videos.
@rajeshch1267
@rajeshch1267 5 жыл бұрын
Hai sir, Please clarify my doubts.we have 100 microservices available so one microservices server or application failed in production environment or in cloud. How should we know that microservices failed. Please replay sir
@TechPrimers
@TechPrimers 5 жыл бұрын
You can use AppDynamics or Dynatrace or similar monitoring tools which monitors your microservice (typically using a actuator/health check endpoint) and raise alerts or leverage auto scaling capabilities of cloud which will create new instances automatically
@rajeshch1267
@rajeshch1267 5 жыл бұрын
How to configure and any examples is there
@techieszone3704
@techieszone3704 6 жыл бұрын
Thanks for sharing. Very informative! Can u share a video on zookeeper also?
@narendrareddyd2645
@narendrareddyd2645 6 жыл бұрын
How to implement profiles in this
@TechPrimers
@TechPrimers 6 жыл бұрын
Pls check profiles in spring boot video
@ChristianAltamiranoAyala
@ChristianAltamiranoAyala 6 жыл бұрын
A great video tech primer team. I have a question, in case I have a microservices with a lot of instances the refresh method is some tedious. Is there any way to solved that problem? Thanks
@TechPrimers
@TechPrimers 6 жыл бұрын
the /refresh needs to be done only when there is a config change and that need not be done on a daily basis. If thats done regularly, you need to opt for a different approach. But ingeneral there is no better way as of now.
@sanjaykantheti4002
@sanjaykantheti4002 6 жыл бұрын
when we have config changes in multiple microservices and need to apply refresh then we can use Spring cloud Bus. :)
@fairozahmed7113
@fairozahmed7113 7 жыл бұрын
Thank you so much.. So nice of you.... God bless.... Great work... :) :) :)
@TechPrimers
@TechPrimers 7 жыл бұрын
my pleasure Fairoz
@nanalaly
@nanalaly 5 жыл бұрын
Very useful
@ParasSharma16july1991
@ParasSharma16july1991 6 жыл бұрын
Hey, your videos are great , can you create a video about PCF and how to deploy microservices in PCF.
@TechPrimers
@TechPrimers 6 жыл бұрын
Not sure if you already saw it. Its already there - kzbin.info/www/bejne/nqu6dqpjYrStn7M
@vanithabasavanna6080
@vanithabasavanna6080 7 жыл бұрын
well explained thank you
@TechPrimers
@TechPrimers 7 жыл бұрын
+vanitha basavanna thanks Vanitha. Glad that was useful
@ayeshaazeez2553
@ayeshaazeez2553 4 жыл бұрын
Good explanation but please avoid background music it's very disturbing
@sss67447
@sss67447 7 жыл бұрын
nice explanation,could u do a video on how to handle transaction in micro services based architecture applications
@TechPrimers
@TechPrimers 7 жыл бұрын
sure Sam. i will do that soon.
@tapashreesmruti
@tapashreesmruti 6 жыл бұрын
Very nice vedio. Thank you for your effort. Your contribution of sharing knowledge means a lot to people like me. I tried this myself. But when i hit refresh in postman with POST, it gives error like Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]. Please help
@arunjagtap9793
@arunjagtap9793 7 жыл бұрын
nicely explained.
@TechPrimers
@TechPrimers 7 жыл бұрын
Thanks Arun. Glad that was helpful
@dharmaraogera3333
@dharmaraogera3333 4 жыл бұрын
please add the server code in git
@rajeshch1267
@rajeshch1267 5 жыл бұрын
great explaination but how to configure svn. in my project i using svn sir.
@TechPrimers
@TechPrimers 5 жыл бұрын
you can take a look at examples from here - github.com/spring-cloud-samples/svn-config-server
@rajeshch1267
@rajeshch1267 5 жыл бұрын
Thank you so much sir
@harishkilari8036
@harishkilari8036 5 жыл бұрын
Great demo!! I see you have added management.security.enabled=false in application.properties of client application. Can we disable security in testing/production environments? Is it not vulnerable if we do so? Can you please tell me about that and Can't we refresh client application with out disabling security?
@TechPrimers
@TechPrimers 5 жыл бұрын
Yes Harish, it is vulnerable and we should not do this. You can have automations in place to have a different account which has access to this /refresh end point. Store the password of this account in a Vault and retrieve it via an API which has approval processes
@harishkilari8036
@harishkilari8036 5 жыл бұрын
@@TechPrimersThanks for the response!! Could you help in getting any reference link/site/doc we can look into?
@TechPrimers
@TechPrimers 5 жыл бұрын
You can get references for securing your service - stackoverflow.com/questions/29605201/how-to-secure-spring-cloud-config-server Use CyberArk APIs to retrieve password from a Vault.
@wikiiwOw
@wikiiwOw 3 жыл бұрын
Bhai not bootstrap not working
@agguLi
@agguLi 4 жыл бұрын
I don't really get the advantage of this. In a real production env you (Docker or Kubernetes) you will use secrets and the instances will be orchestrated. I always use a .yml file and set my variables via env vars. The orchestrator handles changes and redeploys but keeping the old version alive and online till the new version is deployed and running. So the client will habe no down time. Besides an external config server increases coupling and the separate refresh call is pretty annoying too. I never used it and I guess I never will. But thanks for the video
@hkmehandiratta
@hkmehandiratta 2 жыл бұрын
code-server code missing from Github. Thanks for Tutorial though. Good job.
@lovekeshkulria5807
@lovekeshkulria5807 6 жыл бұрын
why can' t you reduce background music
@mayureshtrivedi1234
@mayureshtrivedi1234 5 жыл бұрын
Excellent Demo but the music in background was annoying... you may reduce it to very low or remove it.... because we concentrate on your words and demo then music....
@vanithabasavanna6080
@vanithabasavanna6080 7 жыл бұрын
well explained
@TechPrimers
@TechPrimers 7 жыл бұрын
thanks vanitha. Glad that was useful
@jaishantbiradar172
@jaishantbiradar172 7 жыл бұрын
Thanks
@SrinivasaKalyanParupalli
@SrinivasaKalyanParupalli 5 жыл бұрын
Fantastic tutorial.... Can you please get rid of the background music.....pl pl pl
@jamesmiller9
@jamesmiller9 6 жыл бұрын
Can you please upload the video without background music. It makes less focus about presentation.
@MohaideenA
@MohaideenA 6 жыл бұрын
Including this comment for those who are using new version , the refresh URL /refresh will not work in new version, you should use /actuator/refresh and With Spring Boot 2.0.*, actuator endpoints must be 1) enabled and 2) exposed. By default, all endpoints but shutdown are enabled and only health and info are exposed. In this case, the following should work: management.endpoints.web.expose=refresh stackoverflow.com/questions/48900892/how-to-enable-all-endpoints-in-actuator-spring-boot-2-0-0-rc1
@yadnyesh
@yadnyesh 7 жыл бұрын
Great work...request you not to have the background music. It distracts a bit. Your videos are awesome.
@TechPrimers
@TechPrimers 7 жыл бұрын
+Yadnyesh Juvekar sure yadnyesh. Will not have then in new ones
@3pearlpret
@3pearlpret 6 жыл бұрын
please keep the music , its awesome :)
@HPMuwa
@HPMuwa 6 жыл бұрын
Спасибо
@srikanths4602
@srikanths4602 5 жыл бұрын
Great Explanation. Quick question at kzbin.info/www/bejne/mGPMmWiIeNqriq8 couldn't understand how the git repository is initialized. Is is initialized just in the local ? Not in the github.com, Am I understanding it correctly ? Thanks
@nehanigam4997
@nehanigam4997 5 жыл бұрын
music is really annoying, not able to concentrate!
@kannatube1
@kannatube1 2 жыл бұрын
best content, adding bgm is worst idea.. it is annoying
@sahinsarkar7293
@sahinsarkar7293 5 жыл бұрын
The music should have been shut off. It's very distracting.
@trebleclef4889
@trebleclef4889 5 жыл бұрын
Meybe real life example was better for understand when to using config server.
@rasZam
@rasZam 2 жыл бұрын
music in the background is annoying
@ajaybachhal3675
@ajaybachhal3675 3 жыл бұрын
too many adds
@sayitlikeitis1202
@sayitlikeitis1202 5 жыл бұрын
Please get RID of the background music !!! REALLY ANNOYING
@zhenjiehuang8321
@zhenjiehuang8321 7 жыл бұрын
haha
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Actuators in Spring Boot | Tech Primers
17:17
Tech Primers
Рет қаралды 49 М.
Spring Security in a Spring Boot App with Example | Tech Primers
31:29
SC24EP17 Сервис конфигураций Spring Cloud Config - Разработка проектов со Spring
32:44
Spring cloud config server using GitHub repository
29:05
Java Techie
Рет қаралды 55 М.
Spring Cloud Config, Spring Profile With Microservices | With Project
23:50
Spring Cloud Gateway with Hystrix example | Tech Primers
30:39
Tech Primers
Рет қаралды 39 М.