How to Diagnose Memory Leak Issues in Programs Written in C and Go

How to Diagnose Memory Leak Issues in Programs Written in C and Go

Performance bottleneck analysis and flame graph generation based on pprof A comprehensive guide on using Golang pprof How to diagnose memory leak issues in programs written in C and Go. This article provides specific commands and practical examples for diagnosing memory leaks in C and Go programs, using system tools and language features for layered … Read more

Go Begins Work on HTTP/3: Is Go’s Performance Set to Soar?

Go Begins Work on HTTP/3: Is Go's Performance Set to Soar?

Life is ultimately about experiences, especially those that are unresolved. “Dream of the Red Chamber” unexpectedly tells us that the specific ending is not that important; what you unfold in each word and sentence is already interesting enough. Introduction With the continuous evolution of internet technology, the HTTP protocol is also undergoing constant upgrades. From … Read more

Encapsulating HTTP Requests and Logging in Go

Encapsulating HTTP Requests and Logging in Go

Hello everyone! I am Lao Kou! Let’s learn how to encapsulate HTTP requests and logging together. HTTP Requests To encapsulate HTTP requests, you can directly use <span>net/http</span>. There are two main points to note: <span>How to disable HTTPS verification</span> and <span>Client file upload</span>. How to Disable HTTPS Verification // Skip TLS certificate verification client := … Read more

Installation Guide – Installing GCC on Ubuntu

Installation Guide - Installing GCC on Ubuntu

“I just want to run a Go program, but I found out I need to set up a C compiler first?!”Don’t worry, I’ll guide you through this journey easily. 📌 Prerequisites: You need the following âś” A computer that can run Ubuntu (like 18.04, 20.04, 22.04)âś” Administrator privileges (you should be able to use <span>sudo</span>)âś” … Read more

The Art of Middleware in Go: Building High-Performance HTTP Services with Concurrent Safe Maps

The Art of Middleware in Go: Building High-Performance HTTP Services with Concurrent Safe Maps

Click the above“blue text”to follow us The Art of Middleware in Go: Building High-Performance HTTP Services and Concurrent Safe Maps Have you ever written a seemingly simple HTTP service, only to face a disaster under high concurrency? Or have you been overwhelmed by various shared data across requests? Don’t worry. Today, we will discuss the … Read more

Middleware Design Patterns in Go: 8 Common Interception Techniques for HTTP Request Handling

Middleware Design Patterns in Go: 8 Common Interception Techniques for HTTP Request Handling

Click the above“blue text” to follow us Middleware Design Patterns in Go: 8 Common Interception Techniques for HTTP Request Handling “Boss, we have repeated the login validation logic in our system over a dozen times, and the code is everywhere!” Little Wang, who just joined a few days ago, ran over with a frown and … Read more

Fault Injection Testing in Go: A Practical Approach to Chaos Engineering for System Resilience

Fault Injection Testing in Go: A Practical Approach to Chaos Engineering for System Resilience

Click the “blue text” above to follow us Server down! Database unreachable! Network timeout! — Do these words make your scalp tingle? In a production environment, systems can face various bizarre failures at any time. But how do we know if the system can withstand these “critical hits”? Waiting until something goes wrong to regret? … Read more

HTTP Client Pooling in Go: Connection Reuse Technology and TCP Keep-Alive Mechanism

HTTP Client Pooling in Go: Connection Reuse Technology and TCP Keep-Alive Mechanism

Click the “blue text” above to follow us Have you ever encountered a situation where, during peak service hours, a large influx of users causes the system response speed to slow down to a crawl? The code logic seems fine, so why does it struggle under high concurrency? It’s likely that the issue lies not … Read more