Section 7: Configuration Service - KwangtaekJung/MSA-SpringCloud-user-service GitHub Wiki

Section 7: Configuration Service

  • Spring Coud Config
  • Local git Repository
  • Microservice에 적용
  • Spring Bot Actuator
  • Profiels 적용
  • Remote Git Respository
  • Native file Respository

Spring Cloud Config

  • λΆ„μ‚° μ‹œμŠ€ν…œμ—μ„œ μ„œλ²„, ν΄λΌμ΄μ–ΈνŠΈ ꡬ성에 ν•„μš”ν•œ μ„€μ • 정보(application.yml)을 μ™ΈλΆ€ μ‹œμŠ€ν…œμ—μ„œ 관리
  • ν•˜λ‚˜μ˜ 쀑앙화 된 μ €μž₯μ†Œμ—μ„œ ꡬ성 μš”μ†Œ 관리 κΈ°λŠ₯
  • 각 μ„œλΉ„μŠ€λ₯Ό λ‹€μ‹œ λΉŒλ“œν•˜μ§€ μ•Šκ³ , λ°”λ‘œ 적응 κ°€λŠ₯
  • μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 배포 νŒŒμ΄ν”„λΌμΈμ„ 톡해 DEV-UAT-PROD ν™˜κ²½μ— λ§žλŠ” ꡬ성 정보 μ‚¬μš©
  • μš°μ„  μˆœμœ„
    • bootstrap.yml
    • applicatino.yml
    • application-name.yml =>user-service.yml
    • application-name-.yml =>user-service-dev.yml
  • Changed configuration valeus => μ•„λž˜ 3가지 방법이 있음.
    • μ„œλ²„ μž¬κΈ°λ™ =>λΆˆνŽΈν•˜κ³  쒋지 μ•Šλ‹€.
    • Actuator refresh =>μž¬λΆ€νŒ…ν•˜μ§€ μ•Šκ³  κ°€λŠ₯함. =>κ΅¬λ²„μ „μ—μ„œλ§Œ λ™μž‘ν•˜λŠ” 것인지???
    • Spring Cloud Bus μ‚¬μš© =>Actuator을 μ‚¬μš©ν•˜λŠ” 것보닀 더 νŽΈλ¦¬ν•¨.
  • Spring Cloud Config μ„œλ²„ λ™μž‘ 확인
⚠️ **GitHub.com Fallback** ⚠️