Tagged articles

Go

1967 articles · Page 14 of 20
Baidu Geek Talk
Baidu Geek Talk
Nov 2, 2022 · Backend Development

Avoid These Common Go Pitfalls Before They Crash Your Code

This article compiles a series of frequent Go programming pitfalls—ranging from incorrect use of unsafe.Sizeof and variadic any parameters to slice expansion, pointer handling, closure capture, concurrency bugs, and serialization quirks—providing concrete code examples and safe alternatives to help developers write more reliable Go code.

GoMemorybest practices
0 likes · 18 min read
Avoid These Common Go Pitfalls Before They Crash Your Code
Qunar Tech Salon
Qunar Tech Salon
Nov 2, 2022 · Databases

Design of a Next‑Generation Qunar Database Automation Platform: Architecture, Communication Protocol, and Security

This article describes the layered architecture of Qunar's next‑generation database automation platform, outlines the design goals for secure Agent/Plugin‑Server communication, compares communication and encryption methods, and details the authentication and request flow using symmetric encryption and token‑based security.

Agent-Server CommunicationDatabase AutomationGo
0 likes · 9 min read
Design of a Next‑Generation Qunar Database Automation Platform: Architecture, Communication Protocol, and Security
MaGe Linux Operations
MaGe Linux Operations
Oct 29, 2022 · Backend Development

How to Build a Go Trie for Real‑Time Sensitive Word Filtering

This article demonstrates how to implement a sensitive‑word detection system in Go using a prefix‑tree (Trie), covering brute‑force, regex, and optimized rune‑based methods, plus special‑character filtering, pinyin support, and complete source code examples.

GoText FilteringTrie
0 likes · 19 min read
How to Build a Go Trie for Real‑Time Sensitive Word Filtering
Shopee Tech Team
Shopee Tech Team
Oct 27, 2022 · Backend Development

Design and Implementation of a Scalable Fund Routing Decision Engine at Shopee

Shopee’s scalable fund‑routing decision engine combines a configurable Go‑based rule engine with Redis‑backed, Lua‑driven quota control to dynamically match loan orders to external capital providers, enforce multi‑dimensional volume limits, achieve tens of thousands TPS, and provide extensible risk‑management capabilities across markets.

GoMySQLRedis
0 likes · 17 min read
Design and Implementation of a Scalable Fund Routing Decision Engine at Shopee
ITPUB
ITPUB
Oct 26, 2022 · Backend Development

How to Choose the Right Components When Building a Go Microservice Framework

This article walks through practical trade‑offs in designing a Go microservice framework, covering protocol choices, data transport, network handling, serialization methods, service registry options, routing algorithms, and rate‑limiting strategies, while highlighting real‑world implementation details and pitfalls.

GoProtocol Designmicroservices
0 likes · 12 min read
How to Choose the Right Components When Building a Go Microservice Framework
Architect
Architect
Oct 21, 2022 · Databases

Designing Efficient POI Proximity Search with MySQL, GeoHash, and Redis

This article explains how to implement fast nearby POI queries by calculating distances with the Haversine formula, designing MySQL tables and indexes, applying GeoHash for dimensionality reduction, and leveraging Redis Geo for high‑concurrency scenarios, while also providing Go code examples for each step.

GeoHashGoMySQL
0 likes · 29 min read
Designing Efficient POI Proximity Search with MySQL, GeoHash, and Redis
MaGe Linux Operations
MaGe Linux Operations
Oct 20, 2022 · Databases

Boost Ranking Performance with Redis Sorted Sets and Go

This article explains why MySQL struggles with large‑scale ranking, introduces Redis sorted sets as a high‑performance alternative, and provides complete Go code examples—including direct command usage and a struct‑based wrapper—to implement, query, and manage ranked data efficiently.

GoRedisSorted Set
0 likes · 8 min read
Boost Ranking Performance with Redis Sorted Sets and Go
Sohu Tech Products
Sohu Tech Products
Oct 19, 2022 · Fundamentals

Understanding the Observer Pattern with Go Code Examples

This article explains the Observer (publish‑subscribe) pattern, illustrates it with a humorous dialogue, provides complete Go interface and struct implementations for subjects and observers, shows sample client code and output, and discusses practical refactoring using the pattern for configuration changes.

Design PatternGoObserver Pattern
0 likes · 8 min read
Understanding the Observer Pattern with Go Code Examples
Tencent Cloud Developer
Tencent Cloud Developer
Sep 29, 2022 · Backend Development

Analyzing Go Memory Layout and Object Dumping

The article demonstrates how to examine a running Go program’s memory layout by defining example structs, using unsafe.Sizeof/Alignof, dumping writable regions via a Bash script and GDB, and locating fields and string constants in the resulting memory dumps to verify object representation.

GoHeap InspectionLinux
0 likes · 27 min read
Analyzing Go Memory Layout and Object Dumping
macrozheng
macrozheng
Sep 28, 2022 · Backend Development

Why Java 19 Virtual Threads Outperform Traditional Threads and Go Goroutines

This article introduces Java 19's virtual threads, compares their performance and scheduling with traditional platform threads and Go goroutines, provides practical code examples, benchmark results, and migration guidelines, and explains the underlying M:N scheduling mechanisms that make virtual threads more efficient for high‑concurrency, I/O‑bound workloads.

GoJavaPerformance
0 likes · 22 min read
Why Java 19 Virtual Threads Outperform Traditional Threads and Go Goroutines
21CTO
21CTO
Sep 24, 2022 · Frontend Development

Why Wails Is the Lightweight Go Alternative to Electron for Desktop Apps

This article explains how the Go‑based Wails framework provides a lightweight, fast, and native‑rendered solution for cross‑platform desktop applications, comparing it to Electron and detailing its features, IPC mechanism, and the recent v2 release.

Electron alternativeGoIPC
0 likes · 6 min read
Why Wails Is the Lightweight Go Alternative to Electron for Desktop Apps
Tencent Cloud Developer
Tencent Cloud Developer
Sep 23, 2022 · Backend Development

Deep Dive into Go Context Package: Source Code Analysis and Design Patterns

An in‑depth examination of Go’s compact context package reveals its core interface, internal implementations like emptyCtx, cancelCtx, timerCtx, and valueCtx, the propagation and cancellation mechanisms, and practical design patterns, concluding with essential best‑practice guidelines for passing, canceling, and using context values safely.

Design PatternsGoSource Code Analysis
0 likes · 18 min read
Deep Dive into Go Context Package: Source Code Analysis and Design Patterns
MaGe Linux Operations
MaGe Linux Operations
Sep 21, 2022 · Backend Development

Simplify Go Microservices to RESTful APIs with Ginrest and Generics

This article introduces Ginrest, a Go 1.18 generic‑based library that streamlines the conversion of gRPC or other microservice functions into RESTful endpoints by providing request/response wrappers, unified error handling, and context utilities, dramatically reducing repetitive boilerplate code.

GinGoRESTful
0 likes · 9 min read
Simplify Go Microservices to RESTful APIs with Ginrest and Generics
FunTester
FunTester
Sep 21, 2022 · Backend Development

Mastering Go Redis Set Operations: API Guide and Performance Benchmark

This article provides a comprehensive guide to implementing and testing Go Redis Set APIs—including SAdd, SCard, SIsMember, SMembers, SRem, SPop, and SPopN—complete with code examples, a unified test suite, and a performance benchmark that reports QPS and execution time.

APIBackendGo
0 likes · 8 min read
Mastering Go Redis Set Operations: API Guide and Performance Benchmark
21CTO
21CTO
Sep 15, 2022 · Information Security

How govulncheck Helps Go Developers Spot Real Vulnerabilities

The new govulncheck tool leverages the Go vulnerability database to pinpoint actual vulnerable function calls in code, reducing noise and addressing developer challenges around error handling and third‑party library security, while recent surveys highlight the growing need for such solutions.

Gogovulnchecksecurity
0 likes · 6 min read
How govulncheck Helps Go Developers Spot Real Vulnerabilities
MaGe Linux Operations
MaGe Linux Operations
Sep 14, 2022 · Backend Development

What Go Developers Really Think About Generics, Security, and Tooling in the 2022 Q2 Survey

The 2022 Q2 Go developer survey of 5,752 respondents reveals rapid adoption of generics, limited awareness of fuzz testing, security concerns centered on third‑party dependencies, mixed feelings about new features, and insights into tooling, IDE preferences, and workspace usage that guide the Go team's future priorities.

Developer SurveyFuzzingGo
0 likes · 17 min read
What Go Developers Really Think About Generics, Security, and Tooling in the 2022 Q2 Survey
Tencent Cloud Developer
Tencent Cloud Developer
Sep 14, 2022 · Backend Development

Understanding Go Stack Memory Management

The article explains how Go’s runtime manages goroutine stacks—starting with a 2 KB initial size, evolving from segmented to continuous stacks, detailing allocation via stackpool and stackLarge, expansion with runtime.newstack, shrinkage by the garbage collector, and the internal structures that coordinate these processes.

Gomemory managementruntime
0 likes · 15 min read
Understanding Go Stack Memory Management
21CTO
21CTO
Sep 12, 2022 · Backend Development

Go 2022 Q2 Survey: Surprising Insights on Generics, Fuzzing, and Security

Based on responses from 5,752 developers, the 2022 Q2 Go survey uncovers rapid adoption of generics, low awareness of built-in fuzz testing, major security concerns around third-party dependencies, challenges in error handling, and preferences for tooling and platforms, offering a comprehensive snapshot of the Go ecosystem.

Developer ToolsGofuzz testing
0 likes · 6 min read
Go 2022 Q2 Survey: Surprising Insights on Generics, Fuzzing, and Security
Architecture Digest
Architecture Digest
Sep 7, 2022 · Backend Development

Building a High-Performance Scalable Instant Messaging System with Go and WebSocket

This article guides readers through the design and implementation of a high‑performance, scalable instant‑messaging (IM) system using Go, detailing WebSocket protocol fundamentals, server‑side architecture, authentication, message handling, code examples, and optimization strategies for production deployment.

GoWebSocketinstant messaging
0 likes · 39 min read
Building a High-Performance Scalable Instant Messaging System with Go and WebSocket
IT Architects Alliance
IT Architects Alliance
Sep 6, 2022 · Backend Development

Building a High‑Performance, Scalable IM System with Go and WebSocket

This article explains the fundamentals of instant‑messaging, dives deep into the WebSocket protocol and its handshake, and provides a step‑by‑step guide with Go code to quickly build a high‑availability, extensible IM system that supports registration, login, single‑chat, group‑chat, file upload and optimization strategies.

GoIM SystemWebSocket
0 likes · 38 min read
Building a High‑Performance, Scalable IM System with Go and WebSocket
Top Architect
Top Architect
Aug 31, 2022 · Backend Development

Implementing a Reliable Delay Queue with Redis and Go

This article explains how to build a precise, persistent delay queue using Redis data structures and Lua scripts, demonstrates a Go client library with code examples for sending, consuming, acknowledging, and retrying delayed messages, and discusses the design requirements such as durability, retry mechanisms, and timing accuracy.

GoLuaRedis
0 likes · 13 min read
Implementing a Reliable Delay Queue with Redis and Go
Infra Learning Club
Infra Learning Club
Aug 31, 2022 · Backend Development

How to Build a Remote Go Development Environment with VS Code

This guide walks through configuring a remote Linux machine for Go development using VS Code’s Remote‑SSH extension, covering SSH key setup, host configuration, Go installation, VS Code extensions, and additional system tweaks to create a fast, resource‑rich development environment.

GoLinuxRemote SSH
0 likes · 7 min read
How to Build a Remote Go Development Environment with VS Code
Architecture Digest
Architecture Digest
Aug 31, 2022 · Backend Development

Implementing a Reliable Delay Queue with Redis and Go

This article explains how to build a reliable delayed message queue using Redis, covering business scenarios, requirements such as persistence and retry, the design of Redis data structures, Lua scripts for atomic operations, and a Go implementation with example code for producing and consuming delayed tasks.

GoLuaRedis
0 likes · 13 min read
Implementing a Reliable Delay Queue with Redis and Go
MaGe Linux Operations
MaGe Linux Operations
Aug 26, 2022 · Cloud Native

How to Extend the Kubernetes Scheduler with Custom Plugins and Network Traffic Scoring

This article provides a step‑by‑step guide on extending the Kubernetes scheduler, covering configuration of scheduler profiles, implementing out‑of‑tree plugins, integrating Prometheus‑based network traffic scoring, and deploying the custom scheduler both inside and outside a cluster, complete with code samples and troubleshooting tips.

GoKubernetesPrometheus
0 likes · 24 min read
How to Extend the Kubernetes Scheduler with Custom Plugins and Network Traffic Scoring
Tencent Cloud Developer
Tencent Cloud Developer
Aug 24, 2022 · Backend Development

Go Distributed ID Generation: UUID, ShortUUID, XID, KSUID, ULID, Snowflake, and Segment Modes

The article surveys Go‑based distributed ID generation techniques—from UUID, short‑UUID, XID, KSUID, ULID, and Snowflake to database auto‑increment, Redis, ZooKeeper, and segment/leaf approaches—detailing their characteristics, trade‑offs, implementation snippets, and strategies for ordering, uniqueness, and clock‑rollback handling.

GoRedisSnowflake
0 likes · 12 min read
Go Distributed ID Generation: UUID, ShortUUID, XID, KSUID, ULID, Snowflake, and Segment Modes
Java High-Performance Architecture
Java High-Performance Architecture
Aug 23, 2022 · Backend Development

How to Build a Million‑User Ticket‑Snatching System with Go, Nginx, and Redis

This article explores the architecture and implementation of a high‑concurrency ticket‑snatching system, covering load‑balancing strategies, Nginx weighted round‑robin configuration, Redis‑based inventory management, and Go code examples that together enable handling millions of simultaneous requests while preventing overselling and ensuring high availability.

GoRedishigh concurrency
0 likes · 20 min read
How to Build a Million‑User Ticket‑Snatching System with Go, Nginx, and Redis
Bilibili Tech
Bilibili Tech
Aug 23, 2022 · Information Security

Constant-Time Implementation and Optimization of SM2 Finite Field Inversion

The article analyzes constant‑time computation of the multiplicative inverse in SM2’s prime field, compares the variable‑time Extended Euclidean Algorithm with a constant‑time Fermat‑based square‑and‑multiply exponentiation, optimizes the fixed exponent using add‑chain generation, and shows this reduces multiplications from ~187 to ~41, making inversion the dominant cost in secure SM2 signing.

Fermat's little theoremGoSM2
0 likes · 12 min read
Constant-Time Implementation and Optimization of SM2 Finite Field Inversion
Tencent Cloud Developer
Tencent Cloud Developer
Aug 22, 2022 · Fundamentals

Understanding Go's Context: Source Code Analysis and Practical Usage

The article explains Go's context package by dissecting its source‑code implementations—emptyCtx, valueCtx, cancelCtx, and timerCtx—showing how the API (Background, WithCancel, WithTimeout, WithDeadline, WithValue) builds a tree‑structured cancellation and timeout system that simplifies goroutine lifecycle management and request‑scoped data propagation.

ContextGosource code
0 likes · 19 min read
Understanding Go's Context: Source Code Analysis and Practical Usage
Zuoyebang Tech Team
Zuoyebang Tech Team
Aug 18, 2022 · Backend Development

Why Zuoyebang Switched to Go: Inside the Zgin Backend Framework

Zuoyebang replaced its PHP monolith with the Go‑based Zgin framework to overcome microservice, performance, and cloud‑native limitations, delivering a modular, high‑performance backend that supports service governance, efficient logging, and seamless deployment across thousands of services.

BackendGo
0 likes · 17 min read
Why Zuoyebang Switched to Go: Inside the Zgin Backend Framework
21CTO
21CTO
Aug 18, 2022 · Cloud Native

Why Go (Golang) Is the Go‑To Language for Cloud‑Native Development

This article explores Go's concise design, strong concurrency model, fast compilation, static binaries, and broad ecosystem, highlighting its ideal fit for cloud‑native applications, distributed services, and command‑line tools while also addressing its limitations and future direction.

GoStatic Binariescloud-native
0 likes · 12 min read
Why Go (Golang) Is the Go‑To Language for Cloud‑Native Development
Tencent Cloud Developer
Tencent Cloud Developer
Aug 15, 2022 · Backend Development

Why Dependency Injection Matters in Go and How to Leverage Uber’s Fx Framework

This article explains the concept of dependency injection, why it is essential for Go backend services, compares manual object wiring with DI containers, reviews popular Go DI libraries, and demonstrates how to use Uber’s Fx framework (and a custom Viego framework) to simplify application initialization and lifecycle management.

Dependency InjectionGobackend development
0 likes · 11 min read
Why Dependency Injection Matters in Go and How to Leverage Uber’s Fx Framework
macrozheng
macrozheng
Aug 14, 2022 · Fundamentals

How Ken Thompson’s Journey Shaped UNIX, C, and Go – The Untold Story

Ken Thompson, the Turing‑award‑winning computer pioneer, co‑created UNIX, contributed to the Multics project, helped develop the C language, and later co‑designed Go at Google, with a life story that blends groundbreaking OS design, hacker culture, and a passion for aviation.

C languageGoKen Thompson
0 likes · 12 min read
How Ken Thompson’s Journey Shaped UNIX, C, and Go – The Untold Story
MaGe Linux Operations
MaGe Linux Operations
Aug 8, 2022 · Backend Development

Can Go’s New Generics Unlock Functional Programming?

This article explores how Go 1.18’s generic type parameters enable functional programming features such as higher‑order functions, lazy evaluation, and partial application, while also highlighting the limitations and design compromises that arise from Go’s type system and language ergonomics.

Gofunctional programminggenerics
0 likes · 27 min read
Can Go’s New Generics Unlock Functional Programming?
Top Architect
Top Architect
Aug 4, 2022 · Backend Development

Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Redis, and Go

This article explains how to build a high‑concurrency ticket‑seckill service that can handle millions of requests by combining distributed load‑balancing (OSPF, LVS, Nginx weighted round‑robin), a pre‑deduction stock strategy using local memory and Redis with Lua scripts, and a Go‑based HTTP server, and it demonstrates performance testing results.

GoRedisSystem Design
0 likes · 19 min read
Designing a High‑Concurrency Ticket‑Seckill System with Load Balancing, Redis, and Go
21CTO
21CTO
Aug 3, 2022 · Backend Development

What’s New in Go 1.19? Key Features, Performance Boosts, and Compatibility

Go 1.19, released on August 2, 2022, brings extensive toolchain, runtime, and library enhancements—including memory model refinements, LoongArch support, improved doc comments, new atomic types, security changes to os/exec, GC soft memory limits, and performance upgrades—while maintaining full backward compatibility with Go 1.

GoGo 1.19Language Update
0 likes · 4 min read
What’s New in Go 1.19? Key Features, Performance Boosts, and Compatibility
Selected Java Interview Questions
Selected Java Interview Questions
Aug 2, 2022 · Backend Development

Implementing a Reliable Delay Queue with Redis and Go

This article explains how to build a reliable delayed message queue using Redis data structures and Go, covering business scenarios, design requirements, key Redis keys, Lua scripts for atomic operations, message lifecycle management, and provides complete source code for implementation.

GoLuadelay queue
0 likes · 14 min read
Implementing a Reliable Delay Queue with Redis and Go
37 Interactive Technology Team
37 Interactive Technology Team
Aug 1, 2022 · Backend Development

Understanding Kafka Consumer Groups, Polling, and Offset Commit Strategies with kafka-go

The article demonstrates how kafka-go implements consumer groups by creating readers that spawn poll goroutines per partition, explains heartbeat‑driven rebalancing, and compares automatic versus manual offset‑commit strategies, highlighting their impact on throughput, reliability, and message‑processing semantics.

Consumer GroupGoKafka
0 likes · 15 min read
Understanding Kafka Consumer Groups, Polling, and Offset Commit Strategies with kafka-go
Tencent Cloud Developer
Tencent Cloud Developer
Jul 28, 2022 · Backend Development

A Comprehensive Overview of Common Go Tools and Commands

This article surveys the essential Go command‑line utilities—including go help, get, build, install, fmt, env, test, and the extensive go tool suite such as pprof, trace, vet, and doc—while also highlighting popular third‑party tools like Delve, staticcheck, goconvey, go‑swagger, and others for debugging, testing, linting, and performance analysis.

GoToolscommands
0 likes · 20 min read
A Comprehensive Overview of Common Go Tools and Commands
Tencent Cloud Developer
Tencent Cloud Developer
Jul 25, 2022 · Backend Development

Understanding Go Concurrency: Goroutines, Scheduler, Threads and Synchronization

The article explains Go’s concurrency model, detailing how goroutines are lightweight work units scheduled by the Go runtime onto logical processors, the role of the scheduler, differences between concurrency and parallelism, thread limits, and practical synchronization tools such as WaitGroup, atomic operations, and mutexes.

GoMutexatomic
0 likes · 19 min read
Understanding Go Concurrency: Goroutines, Scheduler, Threads and Synchronization
Shopee Tech Team
Shopee Tech Team
Jul 21, 2022 · Cloud Native

Design and Implementation of Shopee Games Unified API Gateway

The Shopee Games team created a custom Protobuf‑driven API gateway that unifies external HTTP and internal RPC traffic, automatically generates routing, authentication, logging and Swagger from proto annotations, shares capacity across services, and boosts performance and resource utilization for their micro‑service‑based casual gaming platform.

API GatewayGoProtobuf
0 likes · 23 min read
Design and Implementation of Shopee Games Unified API Gateway
Architecture Digest
Architecture Digest
Jul 21, 2022 · Backend Development

Implementing a Reliable Redis‑Based Delay Queue in Go

This article explains how to design and implement a precise, persistent, and retry‑capable delay queue using Redis ordered sets and Lua scripts, provides a complete Go library with usage examples, and discusses the underlying data structures, atomic operations, and garbage‑collection mechanisms.

GoRedisdelay queue
0 likes · 11 min read
Implementing a Reliable Redis‑Based Delay Queue in Go
Tencent Cloud Developer
Tencent Cloud Developer
Jul 19, 2022 · Backend Development

Designing a Reactor‑Based Asynchronous Network Library in Go

To overcome Go’s per‑connection goroutine memory and GC limits at massive scale, the article designs a three‑layer Reactor‑based network library that uses epoll/kqueue, lock‑protected file descriptors, zero‑copy buffers, and load‑balanced sub‑reactors, enabling stable operation with up to a million concurrent connections.

GoPerformanceReactor
0 likes · 19 min read
Designing a Reactor‑Based Asynchronous Network Library in Go
ITPUB
ITPUB
Jul 18, 2022 · Backend Development

Designing Flexible Go Repositories with DDD: Interfaces, Implementations, and Snapshots

This article explains how to persist domain entities using DDD‑driven repositories in Go, covering value objects vs. entities, repository interface design, method naming conventions, single‑ and multi‑table implementations, and snapshot‑based change detection to handle evolving storage requirements.

DDDGoPersistence
0 likes · 14 min read
Designing Flexible Go Repositories with DDD: Interfaces, Implementations, and Snapshots
Yiche Technology
Yiche Technology
Jul 18, 2022 · Fundamentals

Deep Dive into Go's Map Implementation: Hash Tables, Hash Functions, and Runtime Mechanics

This article provides a comprehensive analysis of Go's map implementation, covering its hash‑table foundation, key type constraints, hash function characteristics, collision resolution strategies, runtime initialization, internal structures like hmap and bmap, and the various operations for creation, access, update, deletion, and resizing.

Data StructuresGoInitialization
0 likes · 21 min read
Deep Dive into Go's Map Implementation: Hash Tables, Hash Functions, and Runtime Mechanics
Top Architect
Top Architect
Jul 17, 2022 · Backend Development

Implementing a Reliable Delay Queue with Redis and Go

This article explains how to build a precise, persistent, and retry‑capable delayed task queue using Redis ordered sets, Lua scripts, and a Go client, addressing common e‑commerce scenarios like auto‑closing unpaid orders and sending activation messages.

GoLuaRedis
0 likes · 13 min read
Implementing a Reliable Delay Queue with Redis and Go
Bilibili Tech
Bilibili Tech
Jul 15, 2022 · Operations

Full-Chain Load Testing Architecture and Implementation at Bilibili

Bilibili’s full‑chain load‑testing architecture embeds a unique scenario identifier in every request, propagates it through RPC, databases, caches and async queues, isolates production data via shadow resources, and provides a transparent SDK, link analyzer and mock server, enabling comprehensive testing that uncovered dozens of issues and boosted live‑streaming TPS by 140 % without major code changes.

BilibiliGofull-chain load testing
0 likes · 15 min read
Full-Chain Load Testing Architecture and Implementation at Bilibili
Open Source Linux
Open Source Linux
Jul 15, 2022 · Operations

Nali – Offline IP Geolocation & CDN Lookup Tool: Features, Install & Use

Nali is an open‑source Go rewrite of the original Nali C and JavaScript tools, offering offline IP geolocation and CDN provider queries with support for multiple databases, IPv4/IPv6, pipeline processing, interactive mode, multilingual output, and easy installation via source or pre‑compiled binaries across platforms.

CDN lookupCLI toolGo
0 likes · 13 min read
Nali – Offline IP Geolocation & CDN Lookup Tool: Features, Install & Use
Yiche Technology
Yiche Technology
Jul 14, 2022 · Fundamentals

Delve Go Debugger: Installation, Usage, and Command Reference

This article provides a comprehensive guide to installing and using Delve, the Go‑language source‑level debugger, covering installation methods, command‑line interface, debugging workflows, and practical examples for arrays, slices, and goroutines for developers.

DelveGoInstallation
0 likes · 21 min read
Delve Go Debugger: Installation, Usage, and Command Reference
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Jul 13, 2022 · Backend Development

22 Real-World Backend Debugging Stories: From Spring @Value to Go Lock Bugs

This article compiles 22 detailed case studies of backend development challenges—including Spring @Value injection failures, Docker‑based Sentinel CPU metrics bugs, Dubbo tag‑routing quirks, memory leaks in gateways, Nacos TIME_WAIT issues, Go benchmark timeouts, JDK bugs, and more—offering practical troubleshooting insights for engineers.

BackendCase StudiesGo
0 likes · 12 min read
22 Real-World Backend Debugging Stories: From Spring @Value to Go Lock Bugs
Tencent Cloud Developer
Tencent Cloud Developer
Jul 12, 2022 · Fundamentals

Understanding Go's Automatic Memory Management and Garbage Collection (Based on TCMalloc)

Based on Google’s TCMalloc, Go’s automatic memory system organizes memory into pages and spans, uses per‑processor mcache and shared mcentral for size‑class allocation, and employs a concurrent tri‑color mark‑sweep garbage collector triggered by heap usage or large allocations, illustrating the full allocation‑to‑reclamation pipeline.

Garbage CollectionGoTCMalloc
0 likes · 21 min read
Understanding Go's Automatic Memory Management and Garbage Collection (Based on TCMalloc)
ITPUB
ITPUB
Jul 8, 2022 · Fundamentals

Why Entities Matter in DDD: Understanding Identity, Uniqueness, and Aggregate Roots

This article explains the core DDD concepts of entities, value objects, and aggregate roots in Go, detailing how unique identifiers differ from database primary keys, when to use value objects versus primitive types, and best practices for generating and handling IDs within aggregates.

Aggregate RootDDDEntity
0 likes · 17 min read
Why Entities Matter in DDD: Understanding Identity, Uniqueness, and Aggregate Roots
Java High-Performance Architecture
Java High-Performance Architecture
Jul 6, 2022 · Backend Development

How to Build a Million-User Ticket Spike System with Go, Nginx, and Redis

This article explores the design of a high‑concurrency ticket‑spike system inspired by China’s 12306 platform, covering load‑balancing strategies, distributed stock deduction using Redis, Go‑based HTTP services, weighted round‑robin Nginx configuration, performance testing with ApacheBench, and practical architectural insights for handling millions of simultaneous requests.

GoRedisSystem Design
0 likes · 20 min read
How to Build a Million-User Ticket Spike System with Go, Nginx, and Redis
ITPUB
ITPUB
Jul 6, 2022 · Backend Development

Mastering Value Objects in Go: A Practical DDD Guide

This article walks through applying Domain‑Driven Design in Go, focusing on value objects: their definition, immutability, implementation details, common pitfalls with pointers and serialization, practical code patterns, and how to model enums, offering concrete guidance for robust backend development.

Domain-Driven DesignEnumGo
0 likes · 15 min read
Mastering Value Objects in Go: A Practical DDD Guide
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Jul 6, 2022 · Backend Development

How to Let Go Programs Profile Themselves Automatically

This article explains why traditional pprof sampling often fails in production, introduces Go's built‑in profiling tools and runtime.pprof, defines practical rules for triggering automatic sampling based on resource spikes, and demonstrates using the open‑source Holmes library and Docker demo to collect self‑diagnostic profiles.

GoPerformance MonitoringProfiling
0 likes · 12 min read
How to Let Go Programs Profile Themselves Automatically
Top Architect
Top Architect
Jul 5, 2022 · Backend Development

Designing a High‑Concurrency Ticket Booking System with Nginx Load Balancing, Redis Stock Management, and Go

This technical article explains how to handle millions of simultaneous train‑ticket purchase requests by combining Nginx weighted load balancing, local in‑memory stock deduction, and a centralized Redis stock counter using Go, ensuring no overselling, high availability, and efficient performance.

GoRedishigh concurrency
0 likes · 19 min read
Designing a High‑Concurrency Ticket Booking System with Nginx Load Balancing, Redis Stock Management, and Go
Baidu Geek Talk
Baidu Geek Talk
Jul 4, 2022 · Backend Development

Integrating Swagger with Yapi for Automated API Documentation in Go

This guide shows how to install Go‑Swagger, annotate Go code with Swagger comments, generate a swagger.json file, serve it via Nginx, and configure Yapi to automatically import the spec, creating a seamless, always‑up‑to‑date API documentation pipeline for front‑end and back‑end teams.

API documentationGoSwagger
0 likes · 14 min read
Integrating Swagger with Yapi for Automated API Documentation in Go
ITPUB
ITPUB
Jun 30, 2022 · Backend Development

Master Go Performance: Layered Optimization Strategies for Faster Code

This article presents a layered approach to Go performance optimization, covering reasonable code practices, deliberate algorithmic and structural improvements, risky low‑level tweaks, and practical profiling techniques such as pprof, flame graphs, and trace, while providing concrete examples and actionable guidance.

GoPerformance OptimizationProfiling
0 likes · 17 min read
Master Go Performance: Layered Optimization Strategies for Faster Code
21CTO
21CTO
Jun 29, 2022 · Frontend Development

Can You Run Python and Go Directly in Your Browser? Exploring PyScript and Goscript

This article introduces PyScript, a framework that embeds Python code in HTML via WebAssembly, and Goscript, a Go playground that runs Go code in the browser, detailing their underlying technologies, components, and available resources for developers interested in client‑side language execution.

GoGoscriptPyScript
0 likes · 3 min read
Can You Run Python and Go Directly in Your Browser? Exploring PyScript and Goscript
Tencent Cloud Developer
Tencent Cloud Developer
Jun 28, 2022 · Backend Development

Implementing HTTP Request Retry, Hedging, and Circuit Breaking in Go

The article explains how to add reliable HTTP communication in Go by implementing retry logic with configurable backoff and jitter, resetting request bodies for POST retries, using hedged parallel requests, and integrating circuit‑breaker patterns to prevent overload and cascading failures.

CircuitBreakerGoHTTP
0 likes · 16 min read
Implementing HTTP Request Retry, Hedging, and Circuit Breaking in Go
HelloTech
HelloTech
Jun 28, 2022 · Cloud Native

Kubernetes Water Level Balancing Scheduler: Design, Implementation, and Evaluation

The water‑level‑balanced Kubernetes scheduler plugin continuously gathers historical CPU/memory usage from Prometheus, applies a water‑level algorithm during the PreFilter‑Score phases to place low‑utilization Pods on high‑utilization Nodes (and vice‑versa), thereby equalizing node load, improving cluster stability, and increasing overall resource utilization.

GoKubernetesPerformance
0 likes · 20 min read
Kubernetes Water Level Balancing Scheduler: Design, Implementation, and Evaluation
IT Architects Alliance
IT Architects Alliance
Jun 27, 2022 · Operations

Comprehensive Guide to Prometheus: Metrics Collection, Storage, Querying, Alerting and Visualization

This article provides a detailed overview of Prometheus, covering its architecture, metric exposure, scraping models, storage format, metric types, custom exporter implementation in Go, PromQL query language, built‑in functions, Grafana integration, and alerting with Alertmanager, offering practical code examples throughout.

GoGrafanaPromQL
0 likes · 20 min read
Comprehensive Guide to Prometheus: Metrics Collection, Storage, Querying, Alerting and Visualization
FunTester
FunTester
Jun 23, 2022 · Backend Development

Why Switching from Java to Go Simplifies Redis Integration – A Hands‑On Guide

This article walks through the author’s decision to continue learning Go for Redis access, outlines a step‑by‑step study plan, compares Go and Java Redis clients, presents a custom Go‑Redis wrapper with full source code, demonstrates usage in unit tests, and shares console output observations.

API wrapperBackendGo
0 likes · 11 min read
Why Switching from Java to Go Simplifies Redis Integration – A Hands‑On Guide
Baidu Geek Talk
Baidu Geek Talk
Jun 22, 2022 · Databases

Analyzing Go SQL Connection Pool Resource Release and Transaction Management

The article explains how Go's database/sql pool retains connections until Rows, Stmt, or Tx objects are explicitly closed or a timeout context is cancelled, demonstrates experiments showing blocked goroutines when resources aren't released, and offers practical guidelines—using QueryContext with timeouts, deferring Close/Cancel, and always committing or rolling back transactions—to prevent pool exhaustion and improve MySQL reliability.

GoSQLconnection pool
0 likes · 19 min read
Analyzing Go SQL Connection Pool Resource Release and Transaction Management
Tencent Cloud Developer
Tencent Cloud Developer
Jun 21, 2022 · Backend Development

Unlock Go 1.18 Generics: A Complete Guide with Real‑World Code

This article provides a thorough, step‑by‑step exploration of Go 1.18 generics, explaining what generics are, their advantages and drawbacks, how Go implements them compared with other languages, and offering detailed examples of generic variables, functions, methods, interfaces, type constraints, and best‑practice patterns for developers.

Generic FunctionsGoGo 1.18
0 likes · 35 min read
Unlock Go 1.18 Generics: A Complete Guide with Real‑World Code
Tencent Cloud Developer
Tencent Cloud Developer
Jun 13, 2022 · Backend Development

Analysis of Go's sync.Map Implementation: Design, Architecture, and Source Code Walkthrough

The article explains how Go’s sync.Map achieves high‑concurrency performance by maintaining a lock‑free read‑only snapshot in an atomic.Value and a mutex‑protected dirty map, detailing entry state transitions, miss‑driven promotion, and the Store, Load, and Delete operations that together avoid a global lock.

Goconcurrencymap
0 likes · 18 min read
Analysis of Go's sync.Map Implementation: Design, Architecture, and Source Code Walkthrough
ITPUB
ITPUB
Jun 11, 2022 · Databases

How Meituan Optimized a Non‑Intrusive MySQL Packet Capture for Full‑SQL Auditing

This article explains Meituan's non‑intrusive, Go‑based packet‑capture solution for full‑SQL database auditing, details the performance challenges encountered at high QPS, and describes a series of systematic analyses and optimizations—including probe redesign, CPU profiling, data‑masking, scheduling, GC pressure reduction, and packet filtering—that dramatically lowered loss rates and CPU usage.

Database AuditingGoMySQL
0 likes · 12 min read
How Meituan Optimized a Non‑Intrusive MySQL Packet Capture for Full‑SQL Auditing
Tencent Cloud Developer
Tencent Cloud Developer
Jun 8, 2022 · Backend Development

Understanding Go Map and Slice Concurrency Safety and Parameter Passing

The article explains that Go maps and slices are not safe for concurrent reads or writes, describes how the runtime detects map violations, and recommends using sync.Mutex, sync.RWMutex, or sync.Map for maps and external synchronization for slices, while also clarifying that passing these reference types to functions shares underlying data unless explicitly copied.

Goconcurrencylocking
0 likes · 12 min read
Understanding Go Map and Slice Concurrency Safety and Parameter Passing
Shopee Tech Team
Shopee Tech Team
Jun 2, 2022 · Backend Development

Applying GPU Technology for High‑Throughput Image Rendering in Shopee Off‑Platform Ads

The Shopee Off‑Platform Ads team built a GPU‑accelerated Creative Rendering System that uses a four‑layer architecture, CGO‑bridged C/C++ kernels, and template caching to process billions of product images daily, achieving roughly ten‑fold speedup, half the cost, and far reduced rack space while handling high concurrency.

AdvertisingGoImage Rendering
0 likes · 23 min read
Applying GPU Technology for High‑Throughput Image Rendering in Shopee Off‑Platform Ads
Tencent Cloud Developer
Tencent Cloud Developer
Jun 1, 2022 · Backend Development

Implementing a Distributed Delayed Message Queue in Go Using Redis

Implementing a distributed delayed message queue in Go with Redis uses a List for ready jobs and a Sorted Set for delayed jobs, periodically migrating expired entries atomically via Lua or transactions, providing O(1) enqueue/dequeue performance, retry support, and scalable concurrency for multi‑instance systems.

Delayed MessagingGoLua script
0 likes · 12 min read
Implementing a Distributed Delayed Message Queue in Go Using Redis
High Availability Architecture
High Availability Architecture
Jun 1, 2022 · Backend Development

Evolution of Bilibili’s Backend Architecture: From Monolithic Go to BFF and a Unified API Gateway

This article chronicles Bilibili’s transition from a PHP monolith to a Go‑based bilizone monolith, its subsequent decomposition into microservices, the adoption of Backend‑for‑Frontend (BFF) layers, and the eventual consolidation into a unified API gateway that streamlines routing, security, and traffic management across the platform.

API GatewayBFFBilibili
0 likes · 11 min read
Evolution of Bilibili’s Backend Architecture: From Monolithic Go to BFF and a Unified API Gateway
Tencent Cloud Developer
Tencent Cloud Developer
May 30, 2022 · Cloud Native

An Introduction to Prometheus: Metrics Collection, Storage, Querying, Visualization and Alerting

Prometheus is an open‑source monitoring system that scrapes metrics from services or exporters, stores them in a time‑series database, lets users query with PromQL, visualizes data via its web UI or Grafana, and sends alerts through Alertmanager, supporting custom Go metrics, various discovery methods, and four metric types.

GoGrafanaPromQL
0 likes · 21 min read
An Introduction to Prometheus: Metrics Collection, Storage, Querying, Visualization and Alerting
Tencent Cloud Developer
Tencent Cloud Developer
May 24, 2022 · Backend Development

Three Advanced Go Techniques: Minimal Runtime, JIT Compilation, and Bootstrap

The article demonstrates three advanced Go techniques—eliminating the standard runtime by custom entry points, building a simple Python JIT compiler that translates bytecode to optimized machine code, and bootstrapping the Go compiler itself via AST‑to‑LLVM translation—offering practical code examples that reveal compiler internals.

BootstrapGoJIT
0 likes · 21 min read
Three Advanced Go Techniques: Minimal Runtime, JIT Compilation, and Bootstrap
MaGe Linux Operations
MaGe Linux Operations
May 13, 2022 · Backend Development

Build a Go HTTP Proxy from Scratch: Step-by-Step Guide

This tutorial explains proxy fundamentals, compares forward and reverse proxies, details HTTP and HTTPS proxy header differences, and provides a complete, runnable Go implementation that listens on port 8080 and transparently forwards client requests to target servers.

BackendCode ExampleGo
0 likes · 9 min read
Build a Go HTTP Proxy from Scratch: Step-by-Step Guide
php Courses
php Courses
May 13, 2022 · Backend Development

Designing a High-Concurrency Ticketing System with Load Balancing, Redis, and Go

This article explores the architecture and implementation of a high‑concurrency train ticket flash‑sale system, detailing load‑balancing strategies, Nginx weighted round‑robin, Redis‑based inventory management, and Go code examples that demonstrate local and remote stock deduction, performance testing, and fault‑tolerant design.

BackendGoRedis
0 likes · 20 min read
Designing a High-Concurrency Ticketing System with Load Balancing, Redis, and Go
High Availability Architecture
High Availability Architecture
May 13, 2022 · Backend Development

Error Handling and Errgroup Usage in Go

This article explains Go's built-in error interface, distinguishes errors from exceptions, compares three common error-handling patterns, discusses wrapping errors with packages like pkg/errors, and demonstrates centralized error handling using errgroup, including usage examples and best-practice recommendations for backend Go development.

BackendErrGroupGo
0 likes · 17 min read
Error Handling and Errgroup Usage in Go
Code DAO
Code DAO
May 11, 2022 · Backend Development

Understanding HTTP/1.1 Persistent Connections in Go

This article walks through the HTTP/1.1 keep‑alive model, shows how a simple Go program creates separate TCP connections for sequential requests, uses netstat and tcpdump to observe the behavior, and demonstrates how adjusting http.Client's transport settings enables true persistent connections even under concurrency.

GoHTTPHTTP Client
0 likes · 11 min read
Understanding HTTP/1.1 Persistent Connections in Go
Tencent Cloud Developer
Tencent Cloud Developer
May 9, 2022 · Backend Development

Error Handling and ErrGroup Patterns in Go

The article explains Go’s built‑in error interface, distinguishes errors, exceptions and panics, presents three handling patterns—classic returns, stateful objects, and functional deferred execution—shows how to wrap errors for context, and demonstrates using the errgroup concurrency primitive (including an extended version) for safe parallel processing.

ErrGroupGobackend development
0 likes · 15 min read
Error Handling and ErrGroup Patterns in Go
FunTester
FunTester
May 7, 2022 · Backend Development

Hands‑On Guide to Building and Testing gRPC Services with Go

This article walks through setting up the Go environment, defining protobuf files, generating code, and implementing both server and client sides of a gRPC service, complete with runnable examples, common pitfalls, and output verification to help developers quickly adopt Go‑based gRPC testing.

BackendGoProtobuf
0 likes · 6 min read
Hands‑On Guide to Building and Testing gRPC Services with Go