전송 DTO와 domain은 서로 다른 실패를 방어한다

DTO는 client shape를 빠르게 설명하고 domain은 controller 우회 경로까지 불변식을 지킨다.

1. JSON DTO

null·길이·범위

2. Application command

use case 입력

3. Domain value

모든 경로 공통 불변식

4. Database

동시성·고유 제약