한 기능에서 중첩 형태를 단계적으로 좁힌다

각 구현에 필요한 최소 범위만 부여합니다.

  1. 공개 요청

    stable API

  2. owner data

    inner 필요?

  3. method-only

    local 후보

  4. single action

    anonymous/lambda

  5. shared policy

    named type

핵심: 위로 승격할수록 재사용은 늘고 캡슐화 범위는 넓어집니다.