Go 서비스 등록 및 발견 시스템
아키텍처 흐름도
gRPC 서비스 발견
gRPC 리졸버 인터페이스 설계
// gRPC 리졸빌더
type Builder interface {
Build(target Target, cc ClientConn, opts BuildOptions) (Resolver, error)
Scheme() string
}
// gRPC 리졸버
type Resolver interface {
ResolveNow(ResolveNowOptions)
Close()
}
메시지 전달 순서도
소스 코드
Gitee: https://gitee.com/luyue_zhang ...
6월 18일 16:48에 게시됨