Section 3 ~ 5 E-Commerse App, User, Catalog, Orders MicroSerivceBook & Lecture/이도원님 MSA2023. 5. 22. 00:38
Table of Contents
Section 3. E-commerce 애플리케이션
서버 종류
(마이크로서비스의 약어로 MS를 사용)
Eureka Server: (Registry Service) MS 등록 / 검색
API Gateway Server: (Routing Service) MS 부하 분산 / 서비스 라우팅
Config Server: (Configuration Service) MS 설정 정보를 동적으로 변경
Queuing System: MS 간 메시지 발행 및 구독 (ex. kafka)
Section 4. Users Microservice-part1
Greeting 출력 2가지 방법
- Environment
env.getProperty("greeting.message") ?: "No Message"
- Bean + Value
@Component
class Greeting(
@Value("\${greeting.message}")
val message: String
)
greeting.message
h2 설정
spring:
h2:
console:
enabled: true
settings:
web-allow-others: true
path: /h2
디버깅 등 오답노트
@Value in Kotlin
코틀린에서는 이슈가 있다
자세한 건 여기서 확인할 수 있다
h2 db
custom path 설정이 되지 않는다
오래된 버전의 경우 부트 3.0.2 이 막는 것 같다 (보안 등의 이슈?)
조치사항으로 최신 버전으로 변경했다
Section 5. Catalogs and Orders Microservice
딱히 메모할 부분이 보이지 않아서... 생략합니다!
'Book & Lecture > 이도원님 MSA' 카테고리의 다른 글
Section 10: Micro Service간 통신 (0) | 2023.06.03 |
---|---|
Section 8: Cloud Bus (0) | 2023.05.28 |
Section 7: Cloud Configuration (0) | 2023.05.24 |
Section 6: User Service (Security in Spring Boot 3.x) (삽질..) (0) | 2023.05.22 |
Secion 0~2: Micro Service와 Spring Cloud 소개, Service Discovery, API Gateway (0) | 2023.05.22 |
@philo0407 :: Philo의 다락방
hi hello... World >< 가장 아름다운 하나의 해답이 존재한다
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!