Skip to Content
마이크로서비스 아키텍처 구축(전면 개정판)
book

마이크로서비스 아키텍처 구축(전면 개정판)

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
133
3
모놀리스 분해
3.7.23.7.2
데이터 무결성데이터 무결성
데이터베이스는 데이터 무결성을 보장하는 데 유용하다. [그림
3
-
6
]으로 돌아가보자.
Album
테이블과
Ledger
테이블이 같은 데이터베이스에 있다면
Ledger
테이블과
Album
테이블의 행
row
사이에 외래 키
foreign
key
관계를 정의할 수 있다. 이렇게 하면
Album
레코드가
Ledger
에서
참조되는 경우
Album
테이블에서 해당 레코드를 삭제할 수 없으므로
Ledger
테이블에 있는
레코드에서 판매된 앨범에 대한 정보를 찾는 것은 항상 보장된다.
이제 이러한 테이블이 서로 다른 데이터베이스에 있으므로 더 이상 데이터 모델의 무결성을 강
제할 수 없다.
Album
테이블에서 행을 삭제하는 것을 막을 방법이 없으므로 정확히 어떤 항목
이 판매됐는지 알아내려고 할 때 문제가 발생한다.
어느 정도까지는 엔티티
entity
간 관계의 무결성을 적용하기 위해 더 이상 데이터베이스에 의존
할 수 없다는 사실에 익숙해져야 한다. 물론, 한 데이터베이스 내부에 남아 있는 데이터의 경우
문제가 되지 않는다.
여러 가지 우회 방법이 있지만, ‘대처 패턴
coping
pattern
’이 이 문제를 해결할 방법을 더 잘 표현하
는 용어인 것 같다.
Album
테이블에서 소프트 삭제
soft
delete
를 하면, 실제로 레코드를 삭제하지
는 않고 삭제된 것으로 표시만 한다. 또 다른 방법은 판매 시 앨범 이름을
Ledger
테이블에 복
사하는 것이지만, 앨범 이름의 동기화 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169211192