Optimizing Compute-Intensive Tasks in Go: Parallel Processing with SIMD Instruction Sets for 4x Speedup

Optimizing Compute-Intensive Tasks in Go: Parallel Processing with SIMD Instruction Sets for 4x Speedup

Click the “blue text” above to follow us Have you ever had this experience? You wrote a program to process a large amount of data, went to make a cup of coffee, and came back to find the program still “buzzing” away. Anxiously waiting, you finally conclude: the performance is lacking! Especially when dealing with … Read more

Understanding HTTP/2 and Practical Implementation in Go

Understanding HTTP/2 and Practical Implementation in Go

After understanding the content of the previous article on net/rpc (From net/rpc in Go applications to gRPC), it is now time to delve into HTTP/2, which is the foundation of the gRPC protocol. A Guide to the Principles of HTTP/2 and Practical Implementation in Go This article focuses on theoretical explanations, and the content will … Read more

The Success of Go Also Heralds the Success of Rust

The Success of Go Also Heralds the Success of Rust

Original: The success of Go heralds that of Rust Author: George Hosu Translators: xiaoaiwhc1, shenweiyan, 溪边九节, 兰陌木兮, adoontheway, 蜗牛伊 From a holistic perspective, it is difficult to understand how Go has achieved such great success. Theoretically, Go is a very poor language, even when compared to older languages like C++ or Ada. It lacks a … Read more

High-Performance Flexible HTTP Router Based on Tree Structure

High-Performance Flexible HTTP Router Based on Tree Structure

Introduction httptreemux is a high-performance, flexible HTTP router based on a tree structure, primarily used for Go language development. The project is inspired by Julien Schmidt’s httprouter, but differs in implementation, particularly with more flexible routing rule design. httptreemux manages routes using a Patricia tree, ensuring high performance while providing a more convenient routing pattern … Read more

Basics of Go Language: net/http Package

Basics of Go Language: net/http Package

Source:jianshu.com/p/8bf41fef20c7 【Introduction】This article introduces the Go language’s standard library net/http. The built-in net/http package in Go is excellent, providing implementations for both HTTP clients and servers. Introduction to net/http The built-in net/http package in Go provides implementations for both HTTP clients and servers. HTTP Protocol The HyperText Transfer Protocol (HTTP) is the most widely used … Read more

Efficient HTTP Large Data Requests Using Go Language Streaming Processing

Hi everyone, I am Hu Ge! Today, let’s talk about something hardcore — the streaming processing feature of Go language. You should know that in development, we often need to handle some large amounts of data, such as large file uploads or processing content that is generated gradually. At this point, if you are using … Read more

Mainflux IoT: Lightweight Open Source IoT Platform in Go

Mainflux IoT: Lightweight Open Source IoT Platform in Go

Mainflux is a secure, scalable open-source IoT platform developed and maintained by a startup in France, built using the Go programming language and adopting a microservices architecture. Mainflux supports various access devices, including devices, users, and apps; it also supports multiple protocols, including HTTP, MQTT, WebSocket, and CoAP, and facilitates protocol conversion between them. Mainflux’s … Read more

Performance Optimization of net/http.ServeMux in Go 1.22

Performance Optimization of net/http.ServeMux in Go 1.22

Performance Optimization of net/http.ServeMux in Go 1.22 In the development of Go, the net/http package is undoubtedly a crucial part. It provides developers with the infrastructure to handle HTTP requests, with ServeMux (HTTP request multiplexer) being one of the most commonly used request routing tools. With the continuous optimization of the Go language, version 1.22 … Read more

How to Improve HTTP Server Throughput in Go 1.22?

How to Improve HTTP Server Throughput in Go 1.22?

Effective Strategies to Improve Go 1.22 HTTP Server Throughput With the widespread use of microservices architecture and high concurrent requests, optimizing HTTP server performance has become a focal point for developers. In Go 1.22, although the Go HTTP server is already very efficient, there are still some techniques and optimization strategies to improve throughput under … Read more

4 Updates for HTTP Performance Optimization in Go 1.22

4 Updates for HTTP Performance Optimization in Go 1.22

Go 1.22 introduces several optimizations, particularly in terms of HTTP performance. As Go continues to evolve, enhancements related to HTTP performance are crucial since HTTP is a core component of many applications. Here are 4 updates regarding HTTP performance optimization in Go 1.22: 1. Optimized Memory Management for HTTP/2 Requests Go 1.22 has made memory … Read more