O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Spring cloud config manage configuration

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
Spring Cloud Config
Spring Cloud Config
Carregando em…3
×

Confira estes a seguir

1 de 19 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a Spring cloud config manage configuration (20)

Anúncio

Mais recentes (20)

Spring cloud config manage configuration

  1. 1. Spring Cloud Config JANANI VELMURUGAN,PMP
  2. 2. Agenda  Why Configuration Server ?  Spring Cloud Config Server  Config Server - REST Endpoints  Spring Cloud Config Client  Update Configuration at Runtime
  3. 3. Introduction  Managing application configuration in a distributed system  Central place to manage external properties for applications across all environments.
  4. 4. Non-distributed vs Distributed Application  Non-distributed Application – Monolithic  One or a handful of configuration files  Distributed Application - Microservices  Many configuration files for each microservice
  5. 5. How to manage Configuration?  Configuration Management Tool - Chef,Puppet,Ansible  Not ideal for the cloud
  6. 6. Challenges
  7. 7. Configuration Server - Dependency
  8. 8. @EnableConfigServer
  9. 9. Config Files – Set up  {application}  {application}-{profile}
  10. 10. Config Server – application.properties
  11. 11. REST Endpoint - Parameters
  12. 12. REST Endpoints - Example  GET/{application}/{profile}[/{label}]  /myapp-dev.yml  /myapp-prod.properties  /myapp-default.properties  GET/{application}-{profile}.(yml|properties)  /myapp/dev/master  /myapp/prod/v2  /myapp/default  GET/{label}/{application}-{profile} .(yml|properties)  /master/myapp-dev.yml  /v2/myapp-prod.properties  /master/myapp-default.properties
  13. 13. Spring Config Client  Responsible for bootstrapping & fetching application configuration  Before starting the spring application context, it fetches the application configuration from server
  14. 14. Spring Config Client - Dependency
  15. 15. Two ways of fetch  Config First  Discovery First
  16. 16. Update Configuration
  17. 17. Update Configuration  /refresh- POST=>/http://localhost:8080/refresh  /monitor  Install ngrok  Right click ngrok=> Run as administrator  ngrok http 8888  Add webhook (next slide)  Output Reference: 1. https://spencergibb.netlify.com/blog/2015/09/24/spring-cloud-config-push-notifications/ 2. http://www.baeldung.com/spring-cloud-bus ngrok by @inconshreveable (Ctrl+C to quit) Session Status online Version 2.2.8 Region United States (us) Web Interface http://127.0.0.1:4040 Forwarding http://96300031.ngrok.io -> localhost:8888 Forwarding https://96300031.ngrok.io -> localhost:8888 Connections ttl opn rt1 rt5 p50 p90 1 0 0.00 0.00 16.97 16.97 HTTP Requests ------------- POST /monitor 200
  18. 18. Update Configuration - Add Webhook
  19. 19. Thank You  Github Repository : https://github.com/JananiVelmurugan

×