gRPC proto 삼각 매핑
package, service, method 이름이 proto, handler, client에서 같은 값을 가져야 합니다.
proto
UserService.GetUserByIdNest handler
@GrpcMethodclient proxy
getUserById()package users
| Unary | 요청 1개 / 응답 1개 / 사용자 조회 |
|---|---|
| Server stream | 요청 1개 / 응답 여러 개 / 목록 push |
| Both-way stream | 양쪽 여러 개 / 실시간 처리 |