Tagged articles

Go

1930 articles · Page 9 of 20
Infra Learning Club
Infra Learning Club
Sep 3, 2024 · Cloud Native

How Kubelet’s VolumeManager Orchestrates Async Volume Attach, Mount, and Unmount

The article dissects Kubelet’s VolumeManager, detailing its asynchronous loops, the VolumeManager interface, how it is started from Kubelet.Run, the handling of Attach/Mount and Unmount operations during pod sync, the internal struct fields, and the plugin initialization process that together manage the full lifecycle of pod volumes.

GoKubernetesPod Lifecycle
0 likes · 10 min read
How Kubelet’s VolumeManager Orchestrates Async Volume Attach, Mount, and Unmount
21CTO
21CTO
Sep 1, 2024 · Backend Development

What’s New in Go 1.23? Key Features and Improvements Explained

Go 1.23 introduces a range‑over‑func iterator, generic type alias preview, optional telemetry, several go command enhancements, numerous standard library updates, and compiler and linker optimizations, providing developers with a more powerful and flexible programming environment.

GoIteratorsNew Features
0 likes · 6 min read
What’s New in Go 1.23? Key Features and Improvements Explained
IT Services Circle
IT Services Circle
Aug 30, 2024 · Backend Development

Technical Interview Q&A: C++ vs Go, Thread Communication, Goroutine, TCP Handshake, SQL, and More

This article compiles a series of technical interview questions and answers covering C++ and Go language differences, thread communication methods on Linux and Windows, stack versus heap memory, orphan processes, read‑write locks, Go goroutine concurrency, TCP three‑way handshake, and a sample SQL query for gender‑based grouping.

C++GoOperating Systems
0 likes · 12 min read
Technical Interview Q&A: C++ vs Go, Thread Communication, Goroutine, TCP Handshake, SQL, and More
Infra Learning Club
Infra Learning Club
Aug 30, 2024 · Cloud Native

Kubelet Source Dive: syncLoopIteration (Part 3) – How probeCh Is Built from Probe Managers

The article explains that the apparent probeCh in kubelet is actually three separate channels—livenessCh, readinessCh, and startupCh—managed by livenessManager, readinessManager, and startupManager, details the ProbeManager implementation that creates probe workers via AddPod, and shows how syncLoopIteration processes probe updates to adjust pod status.

GoKubernetesProbe
0 likes · 8 min read
Kubelet Source Dive: syncLoopIteration (Part 3) – How probeCh Is Built from Probe Managers
Tencent Cloud Developer
Tencent Cloud Developer
Aug 30, 2024 · Fundamentals

Overview of 10 Classic Software Design Patterns with Go Examples

The article presents ten classic software design patterns—Singleton, Factory, Observer, Decorator, Strategy, Adapter, Proxy, Command, Composite, and Iterator—explaining each pattern’s features, advantages, disadvantages, typical applications, and providing concrete Go code examples to illustrate their implementation.

Godecoratorfactory
0 likes · 36 min read
Overview of 10 Classic Software Design Patterns with Go Examples
BirdNest Tech Talk
BirdNest Tech Talk
Aug 28, 2024 · Backend Development

Why Go Channels Slow Down on More CPUs and How to Fix It

A Fastly engineer discovered that increasing CPU cores can degrade Go channel performance due to lock contention, and this article reproduces the benchmarks, explains why goroutine count—not CPU count—is the real culprit, and offers practical optimization techniques.

ChannelsGOMAXPROCSGo
0 likes · 10 min read
Why Go Channels Slow Down on More CPUs and How to Fix It
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 27, 2024 · Backend Development

Deep Dive into Gin Framework: Compressed Radix Tree Routing and Request Processing

This article thoroughly examines the Gin Go web framework, focusing on its compressed radix tree routing mechanism, middleware handling, request lifecycle, and performance‑optimizing techniques, providing code examples and best‑practice recommendations for building high‑throughput backend services.

Compressed Radix TreeGinGo
0 likes · 13 min read
Deep Dive into Gin Framework: Compressed Radix Tree Routing and Request Processing
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 24, 2024 · Backend Development

Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go

This article explains how Go's net/http package leverages function types combined with interfaces—particularly the Handler and HandlerFunc types—to create concise, flexible HTTP servers, reducing boilerplate, improving code reuse and testability, and demonstrates practical examples and underlying implementations.

Gobackend developmentfunction types
0 likes · 9 min read
Using Function Types and Interfaces to Build Flexible HTTP Handlers in Go
FunTester
FunTester
Aug 22, 2024 · Fundamentals

Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover

This article explains Go's unique error handling approach, covering the built-in error interface, creating errors with errors.New, wrapping errors using fmt.Errorf, defining custom error types, logging errors with the log package, and managing severe failures with panic and recover, complete with practical code examples.

Gocustom errorerror handling
0 likes · 15 min read
Master Go Error Handling: Built-in Errors, Wrapping, and Panic/Recover
Architecture & Thinking
Architecture & Thinking
Aug 20, 2024 · Backend Development

Master Go Configuration with Viper: A Step-by-Step Guide

This guide walks through installing Viper, creating common and environment‑specific YAML configuration files, mapping them to Go structs, setting up a global configuration holder, and initializing the config with live watching, providing a complete, runnable example for Go backend projects.

ConfigurationGoStruct Mapping
0 likes · 9 min read
Master Go Configuration with Viper: A Step-by-Step Guide
php Courses
php Courses
Aug 19, 2024 · Backend Development

Building GraphQL Services with Go: Course Overview

This course teaches developers with basic Go knowledge how to design and implement GraphQL services, covering fundamentals of GraphQL, schema definition, request handling, and integration techniques through practical examples to build modern, flexible APIs.

APIGoGraphQL
0 likes · 3 min read
Building GraphQL Services with Go: Course Overview
FunTester
FunTester
Aug 16, 2024 · Backend Development

Master Go Configuration with Viper: Quick Setup and Advanced Features

Learn how to install the Viper library in Go, read and parse YAML, JSON, TOML, and ENV files, and leverage features like default values, automatic reload, environment variable binding, merging configs, dynamic updates, and struct unmarshalling through clear code examples.

ConfigurationGoTutorial
0 likes · 5 min read
Master Go Configuration with Viper: Quick Setup and Advanced Features
Architecture Development Notes
Architecture Development Notes
Aug 15, 2024 · Fundamentals

How Go’s Compiler Shrinks Binaries with Dead Code Elimination

This article explains Go’s dead code elimination (DCE) optimization, demonstrates it with sample code, shows how to inspect compiled binaries using go tool nm, and discusses factors that affect DCE such as code complexity, compiler flags, and reflection, helping developers reduce binary size.

Binary SizeGoStatic Analysis
0 likes · 6 min read
How Go’s Compiler Shrinks Binaries with Dead Code Elimination
Liangxu Linux
Liangxu Linux
Aug 13, 2024 · Backend Development

Master Go Socket and HTTP Programming: Dial, ICMP, and Custom Requests

Learn how to use Go's net package for low‑level socket programming—including TCP, UDP, and ICMP connections with the Dial function—and build HTTP clients with net/http, covering basic requests, POST forms, custom headers, and practical code examples.

GoHTTPbackend development
0 likes · 12 min read
Master Go Socket and HTTP Programming: Dial, ICMP, and Custom Requests
BirdNest Tech Talk
BirdNest Tech Talk
Aug 13, 2024 · Backend Development

Why Go 1.22’s []byte(str) Conversion Beats Unsafe: Benchmarks and Deep Dive

The article investigates Go 1.22’s claim that simple type casting []byte(str) can replace unsafe‑based string‑to‑byte conversions, presents four implementation variants, runs detailed benchmarks on macOS M2 and Linux amd64, analyses compiler inlining and escape behavior, and explains the hidden pitfalls of capacity and mutability in the k8s shortcut.

Gobenchmarkcapacity
0 likes · 16 min read
Why Go 1.22’s []byte(str) Conversion Beats Unsafe: Benchmarks and Deep Dive
Go Development Architecture Practice
Go Development Architecture Practice
Aug 12, 2024 · Backend Development

Common Go Interview Pitfalls and How to Fix Them

This article walks through six common Go interview mistakes—incorrect function brace placement, map initialization without make, unexported struct fields for JSON, ineffective slice iteration, array versus slice parameter passing, and variable shadowing with :=—explaining each issue and providing the correct code examples.

CodingGoInterview
0 likes · 6 min read
Common Go Interview Pitfalls and How to Fix Them
FunTester
FunTester
Aug 12, 2024 · Backend Development

Building a High‑Performance LRU Cache in Go from Scratch

This article explains the importance of caching, compares common replacement policies, and walks through a complete Go implementation of a thread‑safe local LRU cache, including interface design, data structures, linked‑list management, and concurrency handling.

Data StructuresGoLRU cache
0 likes · 11 min read
Building a High‑Performance LRU Cache in Go from Scratch
Nullbody Notes
Nullbody Notes
Aug 10, 2024 · Backend Development

How to Build an Expiring Single-Node Lock in Go

This article explains how to implement a single‑process lock in Go that records an owner, allows only the owner to unlock, and automatically releases the lock after a specified timeout, providing full source code and a walkthrough of the key functions.

GoLockconcurrency
0 likes · 5 min read
How to Build an Expiring Single-Node Lock in Go
FunTester
FunTester
Aug 8, 2024 · Backend Development

Introduction to Cobra and Tutorial for Building CLI Applications in Go

This article introduces the Go Cobra library, outlines its key features such as multi‑command structures, flag handling, auto‑generated help and markdown docs, and provides step‑by‑step code examples for creating, configuring, and extending CLI applications with flags, positional arguments, persistent flags, and subcommands.

CLIGoTutorial
0 likes · 13 min read
Introduction to Cobra and Tutorial for Building CLI Applications in Go
Radish, Keep Going!
Radish, Keep Going!
Aug 7, 2024 · Backend Development

Boost Go Performance: Mastering GC with go trace, GOGC & GOMEMLIMIT

This article demonstrates how to analyze and optimize Go's garbage collection using go trace, comparing single‑threaded and concurrent implementations, and shows how tuning GOGC and GOMEMLIMIT can dramatically improve runtime and memory usage, with detailed code samples and performance metrics.

GOGCGOMEMLIMITGarbage Collection
0 likes · 13 min read
Boost Go Performance: Mastering GC with go trace, GOGC & GOMEMLIMIT
Architecture Development Notes
Architecture Development Notes
Aug 7, 2024 · Backend Development

Why fasthttp Beats net/http by 10×: Deep Dive into Go’s High‑Performance HTTP Library

This article examines why Go’s fasthttp library can outperform the standard net/http package by up to tenfold, covering memory allocation strategies, zero‑copy techniques, connection pooling, and additional optimizations, and offers guidance on when to choose each library for high‑performance backend services.

Gofasthttpnet/http
0 likes · 5 min read
Why fasthttp Beats net/http by 10×: Deep Dive into Go’s High‑Performance HTTP Library
Go Programming World
Go Programming World
Aug 4, 2024 · Fundamentals

Applying the Adapter Pattern in Go: From Payment Systems to Multi‑Cloud Management and Model Training Platforms

This article explains the Adapter design pattern, illustrates its real‑world analogy, demonstrates a complete Go implementation for payment processing, and shows how the pattern can be used in production scenarios such as a multi‑cloud management platform and a model‑training service, highlighting its role in unifying incompatible interfaces.

Cloud NativeDesign PatternsGo
0 likes · 13 min read
Applying the Adapter Pattern in Go: From Payment Systems to Multi‑Cloud Management and Model Training Platforms
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 2, 2024 · Operations

How Alibaba Cloud’s ARMS Go Agent Enables Zero‑Intrusion Monitoring for Go Microservices

This article explains how Alibaba Cloud's ARMS team collaborated with the language and compiler team to create an OpenTelemetry‑based, compile‑time automatic instrumentation solution for Golang applications, detailing its background, technical workflow, key optimizations, and practical impact on cloud‑native monitoring.

ARMSAutomatic InstrumentationCloud Native
0 likes · 13 min read
How Alibaba Cloud’s ARMS Go Agent Enables Zero‑Intrusion Monitoring for Go Microservices
FunTester
FunTester
Aug 1, 2024 · Backend Development

Mastering Advanced fx Features: Invoke, Supply, Populate, and More

This article dives deep into Uber's fx dependency‑injection framework for Go, explaining advanced constructs such as fx.Invoke, fx.Supply, fx.Populate, fx.Annotated, fx.In, fx.Out, fx.Module, fx.WithLogger and fx.As, and provides complete code examples that illustrate how to manage lifecycles, inject static values, differentiate multiple implementations, and customize logging in production‑grade applications.

Gobackend developmentdependency injection
0 likes · 13 min read
Mastering Advanced fx Features: Invoke, Supply, Populate, and More
FunTester
FunTester
Jul 29, 2024 · Backend Development

Mastering Dependency Injection in Go with Uber’s Fx Framework

This article explains the core concepts of dependency injection, introduces Uber’s Fx framework for Go, and provides step‑by‑step code examples that demonstrate how to register providers, manage application lifecycles, and use hooks for start‑up and shutdown logic.

GoLifecycle Managementbackend development
0 likes · 12 min read
Mastering Dependency Injection in Go with Uber’s Fx Framework
Selected Java Interview Questions
Selected Java Interview Questions
Jul 28, 2024 · Backend Development

Performance Comparison of Spring Boot Native Image vs Go and Rust

This article demonstrates how to quickly build and benchmark a Spring Boot 2.x application as a native binary, compares its startup time, memory usage, and request throughput with equivalent implementations in Go and Rust, and concludes that AOT‑processed Java offers impressive performance despite longer compilation times.

GoNative ImageRust
0 likes · 7 min read
Performance Comparison of Spring Boot Native Image vs Go and Rust
Architect
Architect
Jul 26, 2024 · Backend Development

Designing a High‑Performance Go‑Job Scheduler: Architecture, SDK & Task Flow

This article presents a comprehensive technical deep‑dive into Go‑Job, a Go‑native distributed task scheduling framework, covering its background, three‑layer architecture, service and task design, SDK modules, code examples, practical integration steps, and future enhancements for robust backend operations.

GoGo-JobSDK
0 likes · 24 min read
Designing a High‑Performance Go‑Job Scheduler: Architecture, SDK & Task Flow
Architecture Development Notes
Architecture Development Notes
Jul 26, 2024 · Backend Development

Master Go Configuration with Viper: Setup, Usage, and Advanced Tips

This article provides a comprehensive guide to Viper, a powerful Go configuration library, covering its core advantages, step‑by‑step basic usage—including installation, defaults, file handling, environment variables, command‑line flags, remote providers—and advanced techniques such as sub‑tree reading, custom decoding, and managing multiple Viper instances.

Gobackend developmentconfiguration management
0 likes · 10 min read
Master Go Configuration with Viper: Setup, Usage, and Advanced Tips
FunTester
FunTester
Jul 26, 2024 · Backend Development

Mastering Gin: A Hands‑On Guide to Building High‑Performance Go APIs

This tutorial introduces the Gin web framework for Go, covering its core features, installation steps, a simple "Hello World" example, request and response handling, parameter binding, route groups, middleware patterns, and useful utilities for building fast RESTful services.

GinGoMiddleware
0 likes · 13 min read
Mastering Gin: A Hands‑On Guide to Building High‑Performance Go APIs
Radish, Keep Going!
Radish, Keep Going!
Jul 25, 2024 · Backend Development

How to Slash Go GC Overhead on Large Heaps: Techniques and Code

This article examines why Go's garbage collector can become a CPU bottleneck with large heaps, demonstrates the performance impact with benchmark programs, and presents practical strategies—such as using pointer‑free allocations, mmap‑backed memory, and string interning—to dramatically reduce GC pause times.

Garbage CollectionGoLarge heap
0 likes · 13 min read
How to Slash Go GC Overhead on Large Heaps: Techniques and Code
FunTester
FunTester
Jul 24, 2024 · Backend Development

Managing Request Scope, Cancellation, and Timeouts with Go's context Package

This article explains how to use Go's context package for managing request-scoped data, cancellation, deadlines, and timeouts, compares it with Java's ThreadLocal approach, and provides practical code examples for creating contexts, handling goroutine lifecycles, and applying context in network programming.

Gocancellationconcurrency
0 likes · 12 min read
Managing Request Scope, Cancellation, and Timeouts with Go's context Package
Tencent Cloud Middleware
Tencent Cloud Middleware
Jul 17, 2024 · Cloud Native

How Polaris‑Mesh Server Handles Service Instance Heartbeats and Health Checks

This article explores Polaris‑Mesh’s server‑side health‑check mechanism, detailing how client heartbeat requests are received via gRPC, processed through Apiserver, Resource Auth Filter, Service, Healthcheck, and Checker Plugin, and how the system’s configuration, plugins, and time‑wheel ensure reliable instance health monitoring.

GoPolarisMeshhealth check
0 likes · 11 min read
How Polaris‑Mesh Server Handles Service Instance Heartbeats and Health Checks
MaGe Linux Operations
MaGe Linux Operations
Jul 16, 2024 · Cloud Native

How Prometheus Sends Alerts: Rules, Templates, and Frequency Explained

This article explains how Prometheus generates and sends alerts, covering the definition of alert rules with PromQL, grouping, templating, configuring evaluation intervals, deploying a custom alert receiver in Kubernetes, and analyzing alert payloads and delivery frequency, while also detailing alert silencing and resolution behavior.

AlertmanagerGoKubernetes
0 likes · 26 min read
How Prometheus Sends Alerts: Rules, Templates, and Frequency Explained
Nullbody Notes
Nullbody Notes
Jul 14, 2024 · Game Development

Building a Tank Battle Game in Go with Ebiten

This article walks through creating a tank‑battle game in Go using the Ebiten engine, covering repository setup, required tools, code organization, the core Update and Draw loops, and the mathematical formulas—rotation matrix, cross product, dot product, and the separating axis theorem—used for collision detection.

Collision DetectionEbitenGame Development
0 likes · 7 min read
Building a Tank Battle Game in Go with Ebiten
MaGe Linux Operations
MaGe Linux Operations
Jul 10, 2024 · Backend Development

How tunny Implements a Simple Goroutine Resource Pool in Go

This article explains how the tunny library wraps goroutine processing units into a workWrapper to limit concurrency, describes the workerWrapper.run flow that queues workRequests via reqChan, details the workRequest structure with jobChan and retChan, and outlines the required Worker interface methods for custom processing.

Gobackendresource pool
0 likes · 3 min read
How tunny Implements a Simple Goroutine Resource Pool in Go
System Architect Go
System Architect Go
Jul 9, 2024 · Databases

Using Redis as a Vector Database with Go: Index Creation, Data Insertion, and Vector Search

This article explains how to leverage Redis Stack modules such as RedisJSON, RediSearch, and RedisTimeSeries to store, index, and query high‑dimensional vectors for image‑search services, providing Go code examples for index creation, bulk insertion, memory inspection, and K‑Nearest‑Neighbour vector searches with optional filtering.

GoIndexingft-search
0 likes · 11 min read
Using Redis as a Vector Database with Go: Index Creation, Data Insertion, and Vector Search
Alibaba Cloud Observability
Alibaba Cloud Observability
Jul 4, 2024 · Cloud Native

How to Install and Use Go Agent for Cloud‑Native Application Monitoring on ACK

This guide explains how Go Agent solves the manual instrumentation problem in Go microservices by injecting monitoring code at compile time, details its implementation using AST analysis and -toolexec, lists supported SDKs and product features, and provides step‑by‑step instructions for installing the ARMS component, compiling Go binaries, granting permissions, and enabling monitoring on Alibaba Cloud ACK clusters.

ARMSCloud NativeGo
0 likes · 16 min read
How to Install and Use Go Agent for Cloud‑Native Application Monitoring on ACK
Alibaba Cloud Native
Alibaba Cloud Native
Jul 2, 2024 · Cloud Native

How Go Agent Enables Zero‑Intrusion Monitoring for Golang Microservices on Kubernetes

This guide explains how the Go Agent injects observability code at compile time to provide automatic tracing and metrics for Golang microservices running on Kubernetes, covering its architecture, supported SDKs, compatibility, and step‑by‑step deployment instructions including component installation, binary compilation, and YAML configuration.

ARMSGoInstrumentation
0 likes · 17 min read
How Go Agent Enables Zero‑Intrusion Monitoring for Golang Microservices on Kubernetes
Efficient Ops
Efficient Ops
Jul 1, 2024 · Cloud Native

How to Monitor Business Metrics with Prometheus in Kubernetes

This article explains the concept of observability, details Prometheus metric definitions and types, and provides Go code examples for exposing, defining, generating, and scraping business‑level metrics in a Kubernetes‑based cloud‑native environment.

GoKubernetesPrometheus
0 likes · 11 min read
How to Monitor Business Metrics with Prometheus in Kubernetes
FunTester
FunTester
Jul 1, 2024 · Cloud Native

Mastering etcd with Go: From Basics to Distributed Locks

This article introduces etcd as a reliable distributed key‑value store built on Raft, outlines its key features and common use cases such as service discovery and configuration management, and provides a complete Go tutorial covering dependency setup, server launch, client implementation, read/write testing, and distributed lock usage.

GoRaftconfiguration management
0 likes · 10 min read
Mastering etcd with Go: From Basics to Distributed Locks
MaGe Linux Operations
MaGe Linux Operations
Jun 20, 2024 · Backend Development

Master Go’s net.Dial: From Socket Basics to HTTP Clients

This article explains Go's socket programming workflow, detailing the traditional steps of creating, binding, listening, and communicating over sockets, then shows how net.Dial simplifies connections for TCP, UDP, and ICMP, and demonstrates practical HTTP client usage with code examples.

GoHTTPnet.Dial
0 likes · 11 min read
Master Go’s net.Dial: From Socket Basics to HTTP Clients
Nullbody Notes
Nullbody Notes
Jun 20, 2024 · Game Development

Building a Desktop Pet with Go and Ebiten

This article walks through creating a Go‑based desktop pet that follows the mouse, reacts to clicks with sounds and visual changes, and runs transparently using the Ebiten game engine, complete with code snippets, configuration options, and launch instructions.

Desktop PetEbitenGame Development
0 likes · 10 min read
Building a Desktop Pet with Go and Ebiten
LouZai
LouZai
Jun 19, 2024 · R&D Management

How I Built a 20‑Person Go Team in 3 Months and Handed Over Operations

In three months the author recruited a 20‑person Go team in Wuhan, managed simultaneous business handover and ongoing delivery, coordinated demand across three product groups, and reflected on the challenges, collaboration tactics, and personal growth experienced throughout the process.

GoR&D leadershipRecruitment
0 likes · 10 min read
How I Built a 20‑Person Go Team in 3 Months and Handed Over Operations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 19, 2024 · Backend Development

Building and Deploying a Go‑Gin Web Application with Docker: From Installation to Comparison with Koa

This tutorial walks through installing Go, using the Go‑Gin framework, creating a simple cron‑enabled web service, building Docker images with and without multi‑stage builds, pushing them to a registry, deploying on a server, and comparing the final image size with an equivalent Koa implementation.

CronDockerGin
0 likes · 11 min read
Building and Deploying a Go‑Gin Web Application with Docker: From Installation to Comparison with Koa
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 18, 2024 · Backend Development

Graceful Shutdown in Go: Designing Robust Service Termination with the GS Library

This article describes a real‑world incident where rapid pod scaling caused order‑submission failures in a serverless e‑commerce platform, analyzes the root causes, and presents a Go‑based graceful‑shutdown solution—including ASyncClose, SyncClose, and ForceSyncClose modes—implemented in the open‑source GS library to help developers reliably terminate services.

GoTerminateSignalbackend development
0 likes · 21 min read
Graceful Shutdown in Go: Designing Robust Service Termination with the GS Library
Nullbody Notes
Nullbody Notes
Jun 17, 2024 · Backend Development

How Go’s HTTP Standard Library Is Implemented

This article walks through Go’s net/http package, explaining how http.HandleFunc registers handlers via DefaultServeMux, how ServeMux stores routes, performs exact and longest‑prefix matching, and how to extend the server with custom ServeMux and middleware for panic recovery and request timing.

DefaultServeMuxGoMiddleware
0 likes · 17 min read
How Go’s HTTP Standard Library Is Implemented
Open Source Tech Hub
Open Source Tech Hub
Jun 14, 2024 · Backend Development

Why Workerman Beats Go in Simple HelloWorld Benchmarks on an Aliyun Server

The author benchmarked Go's standard HTTP library against PHP frameworks Workerman, Webman, and Swoole (including coroutine mode) on a 4‑core Ubuntu 20.04 Aliyun instance using ApacheBench with and without keep‑alive, revealing that Workerman and Webman often outperform Go in raw request‑per‑second throughput.

GoWebmanapachebench
0 likes · 6 min read
Why Workerman Beats Go in Simple HelloWorld Benchmarks on an Aliyun Server
21CTO
21CTO
Jun 14, 2024 · Fundamentals

2024 Programming Language Rankings: What SlashData’s Survey Reveals

SlashData’s 26th Developer Nation survey, covering over 10,000 developers from 135 countries, shows JavaScript remains the most popular language, Python overtakes Java for second place, and emerging languages like Rust and Go experience rapid growth, while new developers face distinct adoption challenges.

2024 trendsDeveloper SurveyGo
0 likes · 6 min read
2024 Programming Language Rankings: What SlashData’s Survey Reveals
Go Programming World
Go Programming World
Jun 13, 2024 · Backend Development

Using Wire for Dependency Injection in Go Web Applications: A Practical Guide

This article demonstrates how to apply Google’s Wire tool in a production‑grade Go web service, covering project layout, a four‑layer architecture, code generation for constructors, comparisons with dig and inject, and practical CLI usage to streamline dependency injection and improve development efficiency.

GoWeb Developmentarchitecture
0 likes · 23 min read
Using Wire for Dependency Injection in Go Web Applications: A Practical Guide
FunTester
FunTester
Jun 11, 2024 · Backend Development

Mastering High‑Performance Structured Logging in Go with Uber’s Zap

This guide introduces Uber’s open‑source Zap library for Go, explains its performance‑focused features, shows how to install and configure it, and provides step‑by‑step code examples for basic logging, sugared logging, level control, file output, and log rotation.

GoZAPbackend development
0 likes · 15 min read
Mastering High‑Performance Structured Logging in Go with Uber’s Zap
Open Source Linux
Open Source Linux
Jun 7, 2024 · Backend Development

How Docker Transforms Go Web App Development and Deployment

This tutorial explains how Docker can streamline building, testing, and deploying Go web applications, introduces the use of Semaphore for continuous deployment, and walks through creating development and production Dockerfiles, configuring CI/CD pipelines, and managing updates on the server.

Continuous DeploymentDockerGo
0 likes · 25 min read
How Docker Transforms Go Web App Development and Deployment
Top Architect
Top Architect
Jun 3, 2024 · Backend Development

Understanding Delay Queues and Implementing Them with JDK, RabbitMQ, Redis, and lmstfy

This article explains the concept, use cases, and common implementations of delay queues—including JDK's DelayQueue, RabbitMQ plugins, and Redis ZSet—followed by a detailed guide to installing, configuring, and using the open‑source lmstfy project, and concludes with promotional information for ChatGPT‑related services.

GoMessage QueueRedis
0 likes · 14 min read
Understanding Delay Queues and Implementing Them with JDK, RabbitMQ, Redis, and lmstfy
Go Programming World
Go Programming World
Jun 3, 2024 · Backend Development

Using GRequests: A Go Clone of Python Requests for Simplified HTTP Requests

This article introduces the Go library grequests—a clone of Python's requests—demonstrates its installation, compares its API with net/http, and provides concise examples for GET, POST, query strings, basic authentication, and file upload/download, highlighting its simplicity and advantages for HTTP client development.

APIGoHTTP
0 likes · 10 min read
Using GRequests: A Go Clone of Python Requests for Simplified HTTP Requests
MaGe Linux Operations
MaGe Linux Operations
Jun 1, 2024 · Fundamentals

Mastering Go Slices: Creation, Manipulation, and Performance Tips

Go slices are dynamic, flexible data structures built on arrays, offering automatic growth, efficient memory use, and powerful operations such as creation via make or literals, slicing, appending, copying, iteration, and passing to functions, with detailed examples and visualizations illustrating their internal mechanics.

GoMemoryappend
0 likes · 17 min read
Mastering Go Slices: Creation, Manipulation, and Performance Tips
Ops Development & AI Practice
Ops Development & AI Practice
Jun 1, 2024 · Databases

How Go’s database/sql Injects MySQL Drivers: A Deep Dive

This article explains how Go’s standard database/sql package uses a driver registration mechanism to integrate third‑party MySQL drivers, detailing the global driver map, registration function, init process, and a complete example showing how to define, register, and use a custom MySQL driver.

DatabasesGoMySQL driver
0 likes · 7 min read
How Go’s database/sql Injects MySQL Drivers: A Deep Dive
Ops Development & AI Practice
Ops Development & AI Practice
Jun 1, 2024 · Backend Development

Mastering Dependency Injection in Go with Google Wire

This article introduces Google Wire, a static‑analysis‑based dependency injection tool for Go, covering its key features, installation steps, core usage patterns—including defining dependencies, creating providers, generating code, and best practices such as modular management, interface abstraction, and testing with mock implementations.

GoGoogle WireStatic Analysis
0 likes · 8 min read
Mastering Dependency Injection in Go with Google Wire
Ops Development & AI Practice
Ops Development & AI Practice
Jun 1, 2024 · Backend Development

How to Build a Name Injection Registry in Go for Flexible Plugins

This guide walks through creating a name‑based injection system in Go by defining a processor interface, implementing concrete processors, building a registration map with init functions, and demonstrating usage in a main program, while also covering best practices such as global variable handling, initialization order, and error checking.

GoPlugin systemdependency injection
0 likes · 5 min read
How to Build a Name Injection Registry in Go for Flexible Plugins
Ops Development & AI Practice
Ops Development & AI Practice
May 31, 2024 · Backend Development

Build a Go CLI to Connect and Query Oracle DB in Minutes

Learn how to create a Go-based command-line tool that accepts user-supplied parameters to connect to an Oracle database using the loginWithServiceName function, execute arbitrary SQL queries, and display results, complete with full source code, flag parsing, and error handling.

CLIDatabaseGo
0 likes · 5 min read
Build a Go CLI to Connect and Query Oracle DB in Minutes
Ops Development & AI Practice
Ops Development & AI Practice
May 30, 2024 · Fundamentals

Mastering UDP in Go: Build Low‑Latency Network Apps with Simple Code

This article explains the characteristics and ideal use cases of UDP, then walks through step‑by‑step Go code for creating UDP connections, sending and receiving datagrams, and a complete client‑server example, helping developers leverage UDP’s low latency and lightweight nature for real‑time communication, streaming, and IoT scenarios.

DatagramGoReal‑time communication
0 likes · 10 min read
Mastering UDP in Go: Build Low‑Latency Network Apps with Simple Code
Go Programming World
Go Programming World
May 30, 2024 · Backend Development

Standardizing RESTful API Error Handling with Business Error Codes and an Error Package in Go

This article explains how to design a unified business error‑code system for RESTful APIs, demonstrates the structure and format of such codes, provides a Go implementation with structs, interfaces and formatting methods, and shows practical usage in a Gin web server including logging and notification strategies.

GinGoRESTful API
0 likes · 22 min read
Standardizing RESTful API Error Handling with Business Error Codes and an Error Package in Go
DaTaobao Tech
DaTaobao Tech
May 29, 2024 · Backend Development

Guide to Setting Up a Go Development Environment and Build Workflow

Java developers can quickly establish a Go development environment by installing Homebrew, Go, and the Delve debugger, configuring essential environment variables, choosing an IDE such as GoLand or VS Code, organizing projects with standard cmd/internal layouts, managing dependencies via go.mod, automating builds with a Makefile, and debugging or packaging the resulting binaries.

DebuggingDependency ManagementGo
0 likes · 20 min read
Guide to Setting Up a Go Development Environment and Build Workflow
Ops Development & AI Practice
Ops Development & AI Practice
May 27, 2024 · Backend Development

Decoupling Gin Handlers with Dependency Injection in Go

This article explains how to apply Dependency Injection in the Go Gin framework to separate routing logic from business services, reducing code coupling, improving testability, and enhancing reusability through concrete interface definitions, a simple DI container, and practical code examples.

Design PatternsGinGo
0 likes · 6 min read
Decoupling Gin Handlers with Dependency Injection in Go
FunTester
FunTester
May 27, 2024 · Backend Development

Understanding Unix Domain Sockets and a Go Implementation

This article explains Unix domain sockets as a high‑performance inter‑process communication mechanism, describes their types and workflow, outlines advantages and typical use cases, and provides a complete Go example of a server and client communicating via a Unix socket.

GoIPCInterprocess Communication
0 likes · 7 min read
Understanding Unix Domain Sockets and a Go Implementation