Go Language HTTP Middleware Chain: Onion Model Design | Handling Cross-Cutting Concerns

Go Language HTTP Middleware Chain: Onion Model Design | Handling Cross-Cutting Concerns

Click the above“blue text” to follow us Go Language HTTP Middleware Chain: Onion Model Design | Handling Cross-Cutting Concerns Want to know why efficient web services can handle authentication, logging, rate limiting, and error handling simultaneously without making the code look like spaghetti? The secret lies in the “onion model” design of HTTP middleware. Every … Read more

Introduction to MQTT: Practical Implementation

Introduction to MQTT: Practical Implementation

Introduction to MQTT: Practical Implementation 1. Overview of MQTT MQTT (Message Queuing Telemetry Transport) is a lightweight and efficient messaging protocol based on a publish-subscribe model, particularly suitable for Internet of Things (IoT) scenarios. Its operation is based on several core concepts: Broker: The core component of MQTT, acting as a message relay, is responsible … Read more

Makefile Guide for Go Projects

Makefile Guide for Go Projects

This article is a Makefile guide for Go projects. Hello everyone, my name is Xie Wei, and I am a backend developer using the Go language. The theme of this article is: Writing a Makefile guide suitable for Go projects. 1. Prerequisites: Familiarity with Makefile Experience in writing projects in Go During the project development … Read more

Chaos Engineering Tools: Implementing Pod-Level Fault Injection with Go

Chaos Engineering Tools: Implementing Pod-Level Fault Injection with Go

Click the “blue text” above to follow us Late-night overtime, just about to leave, suddenly the production environment alarms go off! Checking logs, monitoring, troubleshooting… After two hours of hassle, I found out it was a cascading failure caused by a timeout in a dependent service. Sigh! Does this situation sound familiar? In a microservices … Read more

Optimization of Wireless Sensor Network Node Locations (Matlab Implementation)

Optimization of Wireless Sensor Network Node Locations (Matlab Implementation)

Click the top left corner to follow us Gift to Readers In the wonderful world of coding research, we can gain many unique insights. From the perspective of algorithm optimization, it is like carefully polishing a piece of art; each refinement of the code and improvement of the algorithm is akin to removing impurities, making … Read more

Performance Evaluation of Go HTTP Frameworks: Fiber vs. Gin vs. Go Standard Library

Performance Evaluation of Go HTTP Frameworks: Fiber vs. Gin vs. Go Standard Library

This content is a translation and organization of the performance evaluation by the well-known performance reviewer Anton Putra Fiber vs. Gin vs. Go (stdlib): Performance (Latency – Throughput – Saturation – Availability)[1]: Performance (Latency – Throughput – Saturation – Availability), with appropriate reductions, and the relevant content and conclusions are based on the original source. … Read more

Parting Ways with the C Language

Parting Ways with the C Language

(Click the public account above to quickly follow) Compiled by: Linux China / Yu Haixin, English: Eric Raymond https://linux.cn/article-9268-1.html Author: Eric Raymond, a renowned computer programmer and a leading figure in the open-source software movement. In 1990, he edited the “New Hacker’s Dictionary”. Since then, he has been fascinated by hacker culture, becoming a historian … Read more

Traffic Dispatch Engine: Real-Time Path Planning Implementation in Go

Traffic Dispatch Engine: Real-Time Path Planning Implementation in Go

Click the “blue text” above to follow us Yesterday, Xiao Wang called me: “Brother Feng, help! Our traffic dispatch system crashed, thousands of vehicles are requesting paths simultaneously, and the server is as slow as a snail!” After hearing his description, I laughed. Isn’t this a typical high-concurrency scenario? It’s just the right time to … Read more

Go 1.24.2 Released: Major Security Vulnerability Fix in net/http – Is Your Service Safe?

Go 1.24.2 Released: Major Security Vulnerability Fix in net/http - Is Your Service Safe?

📢 Latest News On April 2, 2025, Beijing time, the official Go team urgently released Go 1.24.2 and Go 1.23.8, focusing on fixing a critical security vulnerability in the <span><span>net/http</span></span> package—HTTP Request Smuggling (CVE-2025-22871). This vulnerability could allow malicious attackers to bypass security checks, construct illegal requests, and threaten server security. 🚨 Vulnerability Impact Scope … Read more

Introduction to Go Project Development (Part 8): Makefile

Introduction to Go Project Development (Part 8): Makefile

1. What is a Makefile In software development, a Makefile is a script file used for automating the build and management of projects, typically used in conjunction with the make tool. Its core objective is to automate tasks such as compilation, testing, packaging, and deployment. Makefile standardizes commands through declarative rules and dependencies, unifying the … Read more