TarsGo: A high performance microservice framework in golang which is 5 times higher than the performance of gRPC

Sandyskies Chan
Sep 25, 2018 · 12 min read

service governance and multi programing language support

Timer performance issues:

Package net SetDeadline call performance issue

Bytes Buffer related issue

Other aspects of optimization

TCP connection optimization:

goroutine pool

avoid multi-goroutine competition over chan

Use pointers instead of values as function parameter

Avoid using reflection

Tars-Go programming example

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade