릴리스 버전 관리 기법은 여러 형태가 있다. 그중 접근 방식이 상대적으로 간단한 기법을 살펴
볼 것이다. 두 원칙을 준수하고 오픈 소스를 사용하며 특별한 노력 없이 마이크로서비스 버전
을 효과적으로 관리할 수 있는 기법이다.
6.2.2
빌드 도구를 이용한 릴리스 버전 관리
넷플릭스 네뷸라 제품군 중 릴리스 플러그인은 두 원칙을 모두 만족하는 버전 관리 워크플로를
제공한다. 여기에는
final
,
candidate
,
devSnapshot
등의 그레이들 태스크가 포함되며 빌
드 과정에서 프로젝트에 버전을 지정한다. 일반적으로 라이브러리를 개발할 때는 스냅샷 버전
을 먼저 생성한다. 스냅샷이 어느 정도 릴리스에 가까워지면 릴리스 후보 버전을 한 두 단계 거
친 후 최종적으로 파이널 릴리스를 선정한다. 마이크로서비스의 버전 관리 방식은 약간 다르
다. 앞서 언급했듯이 저수준 환경에서 실행되던 특정 코드를 언제든지 반복적으로 프로덕션에
올릴 수 있기 때문이다. [그림
6
-
5
]는 이러한 승격이 진행되는 주기를 나타낸 흐름도다. 배포
파이프라인 마지막 단계에 마이너 릴리스 번호를
N
으로 올리고 버전명을 태그로 지정해 다음
주기에 대비한다.
그림
6-5
마이크로서비스 릴리스 버전 관리 주기
코드 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.