이 좋다. 매우 좋다. 사실 너무 좋아서 이것을 당연하게 여길 정도다. 그러나 종종 마이크로서
비스라는 이름으로 데이터를 분리한다면 결국 데이터 계층에서 마이크로서비스 자체로 조인
작업을 이동해야 한다. 그리고 아무리 노력해봐도 속도가 빨라지기는 어렵다.
뮤직코프와 관련해 우리가 처한 상황을 보여주는 [그림
3
-
6
]을 생각해보자. 우리는 아티스트,
트랙, 앨범에 대한 정보를 관리하고 노출하는 카탈로그 기능을 추출하기로 했다. 현재 모놀리
스 내부의 관련 코드는
Albums
테이블을 사용해 판매 가능한
CD
에 대한 정보를 저장한다. 이
러한 앨범은 결국 모든 판매를 추적하는
Ledger
테이블에서 참조된다.
Ledger
테이블의 행
row
은 판매된 항목을 참조하는 식별자와 함께 날짜를 기록한다. 이 예에서 식별자는 소매 시스템
의 일반적 관행인
SKU
(재고 보관 단위)라고 한다.
33
매월 말에는 베스트셀러
CD
에 대한 개요 보고서를 생성해야 한다.
Ledger
테이블은 가장
많이 판매된
SKU
를 이해하는 데 도움이 되지만, 해당
SKU
에 대한 정보는
Albums
테이블
에 있다. 우리는 보고서를 멋지고 읽기 쉽게 만들길 원했다. ...
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.