golang 환경에서 grpc로 서버를 개발하다보면, grpc conn 객체를 어떻게 관리할지 항상 고민이었습니다. 여러 클라이언트와 통신하면 각자 커넥션을 맺어야할지, 여러번 통신하면 Dial을 매번 요청해야할지, conn 객체와 client 객체 중 무엇을 보관해야하는지 구글링을 통해 얻은 grpc 다루는 노하우에 대해 정리하겠습니다. https://github.com/grpc/grpc-go/issues/682 Best practices for reusing connections, concurrency · Issue #682 · grpc/grpc-go Thank you for this great library! I wanted to inquire about an issue I'm having. I h..
golang으로 구현된 httpmq 코드 분석 해보겠습니다. 깃허브 주소는 아래와 같습니다. https://github.com/hnlq715/httpmq hnlq715/httpmq A simple HTTP message queue written in Go with goleveldb, just like httpsqs written in C with Tokyo Cabinet. - hnlq715/httpmq github.com 간단한 http 메시지 큐 golang 구현체입니다. `main.go`에 모두 구현되어 있어 코드 읽기가 쉽습니다. 대부분의 메시지 큐 구현이 database에 메시지를 저장하고 꺼내가는 구조로 되어 있습니다. 따라서 어떤 database를 사용했는지 보는 것이 중요합니다. httpmq..