※다운로드하시면 더 선명한 자료를 보실 수 있습니다.
PAYCO 쇼핑의 아키텍처를 MSA로 변경하면서 겪은 삽질을 공유합니다.
레거시 서비스에서 서비스를 분리해내는 방법과 순서, 이후 고려해야 할 사항을 공유하고자 합니다.
목차
1. PAYCO 쇼핑?
2. 프로젝트 진행 과정
3. 아키텍처 공유
대상
- MSA, Spring cloud, Docker, Ansible 등을 실무에 적용하는 방법에 관심이 있는 분
- Spring Cloud를 써서 MSA로 개발하고 싶은데 어디서부터 손대야 할지 모르는 분
■관련 동영상: https://youtu.be/l195D5WT_tE
40. ---
# 이미지 다운로드
- name: pull an image
docker_image:
…
# Spring Boot 실행중인지 확인
- name: check if spring boot is
running
…
# Spring Boot Service Registry 제거
- name: spring boot out of service
…
# Spring Boot Shutdown
- name: spring boot shutdown
…
# Run Container
- name: start a container
docker_container:
…
# Spring Boot Health 체크
- name: spring boot health-check
uri:
…
41.
42.
43.
44.
45. public class CategoryResponse {
@ApiModelProperty(value = "카테고리 목록(계층)", position = 1)
private List<MultiLevelCategory> multiLevelCategories;
@ApiModelProperty(value = "카테고리 목록", position = 2)
private List<FlatCategory> flatCategories;
public CategoryResponse(List<MultiLevelCategory> multiLevelCategories, List<FlatCategory> flatCategories) {
this.multiLevelCategories = multiLevelCategories;
this.flatCategories = flatCategories;
}
@Getter
@Setter
public static class FlatCategory {
@ApiModelProperty(value = "카테고리 번호(1뎁스)", position = 10)
private int depth1CategoryNo;
@ApiModelProperty(value = "카테고리 명(1뎁스)", position = 20)
private String depth1Label;
@ApiModelProperty(value = "순서", required = true, position = 30)
private int depth1DisplayOrder;
@ApiModelProperty(value = "아이콘(1뎁스)", position = 40)
private String depth1Icon;
@ApiModelProperty(value = "카테고리 상세 HTML(1뎁스)", position = 50)
private String depth1Content;