go
Go 高性能编程 EP9: 逃逸分析
Go编程中内存逃逸的性能影响
go
Go编程中内存逃逸的性能影响
tech
通过GOGC & GOMEMLIMIT 来手动控制 内存
tech
本文译文深入剖析了gRPC这款高性能RPC框架的不足,详细讨论了其陡峭的学习曲线、过度复杂的接口设计、不完善的HTTP/2兼容性、延迟的HTTP/3支持、JSON映射局限及大消息处理难题,帮助开发者全面认识并探讨gRPC优化改进的可能方向。
tech
Go is a statically typed compiled language designed to be concise and efficient. While Go is not a purely object-oriented language, we can still use design patterns to improve code readability and maintainability. Today, I will introduce a common design pattern: the Decorator pattern. What is the Decorator Pattern?
tech
In the previous article, I briefly introduced the composite pattern in Go, which was explained in a simple manner. We understood that Go can achieve polymorphism in object-oriented programming through composition. In this article, let's learn about Inversion of Control (IoC). Inversion of Control is a software
tech
Go is not a fully object-oriented language; some object-oriented patterns are unsuitable. However, Go has developed its own set of patterns over the years. Today, I would like to introduce a familiar pattern: the Functional Options Pattern. What is the Functional Options Pattern? Go does not have constructors
tech
Go language has three types of pointers. In the normal development process, we only encounter the ordinary pointer.
tech
Learning to debug makes you a better programmer.
tech
gRPC 是Google开发的一个高性能RPC框架,gRPC 默认内置了两种认证方式: * SSL/TLS 认证方式 * 基于 Token 的认证方式 没有启用证书的gRPC服务和客户端进行的是明文通信,信息面临被任何第三方监听的风险。为了保证gRPC通信不被第三方监听、篡改或伪造,可以对服务器启动TLS加密特性。 从 go 1.15 版本开始废弃 CommonName,因此推荐使用 SAN 证书。如果按照之前的步骤通过 OpenSSL 来生成密钥、CSR、证书,会出现这样的错误: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies on legacy Common Name
tech
After writing tons of code and implementing hundreds of interfaces, you finally successfully managed to deploy your application. However, you soon discover that the performance could be better. What a nightmare! This article was first published in the Medium MPP plan. If you are a Medium user, please follow me
tech
Today, I will introduce some commonly used commands and tools for viewing Go assembly code and debugging Go programs. These tools can be used in regular situations when engaging with colleagues or in online discussions, allowing you to have an upper hand in critical moments. This article was first published
tech
As a software developer, I'm constantly on the lookout for the fastest and most efficient tools to build applications. When it comes to speed and tackling complex tasks, Golang and Node.js stand out as top contenders. Both boast excellent reputations in terms of performance. But the burning