proto, Nest handler, client proxy 이름을 삼각형으로 맞춘다

gRPC가 동작하려면 세 위치가 같은 service/method 계약을 바라봐야 합니다. 하나라도 틀리면 런타임에서 메서드가 비어 보입니다.

1

proto

service UserService { rpc GetUserById(...) }

원본 계약입니다.

2

Nest handler

@GrpcMethod( "UserService", "GetUserById" )

서버 구현이 method에 붙습니다.

3

Client proxy

client.getService<UserService>( "UserService" )

클라이언트가 같은 service를 꺼냅니다.

검증 질문: proto service 이름, decorator service 이름, getService 이름이 같은가? method 이름의 대소문자도 같은가?