Tagged articles
1622 articles
Page 11 of 17
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.

GoSegmentdatabase
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.

Gohigh concurrencyredis
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.

GoTimeoutcontext
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.

Cloud NativeDistributed SystemsGo
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.

FrameworkGoUber fx
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.

GenericsGoHigher-Order Functions
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.

GoSeckillSystem 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.

GoKafkaconsumer-group
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.

GoGolangcommands
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.

GoSchedulerSynchronization
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.

GoMicroservicesProtobuf
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.

Distributed SystemsGoMessage 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.

GoReactorasynchronous-io
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.

GoLuaMessage Queue
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.

BilibiliGoMicroservices
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.

ArraysDelveGo
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 CollectionGoMemory Management
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.

GoSystem Designhigh concurrency
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.

Backend ArchitectureDomain-Driven DesignGo
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.

Gohigh concurrencyload balancing
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.

GoProfilingSlice Capacity
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.

BrowserGoGoscript
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.

BackoffCircuitBreakerGo
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.

GoKubernetesScheduler
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.

AlertingGoGrafana
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.

Connection PoolGodatabase
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 FunctionsGenericsGo
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.

GoMAPconcurrency
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 AuditingGoPacket Capture
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.

GoMAPParameter Passing
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.

AdvertisingCUDAGPU
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.

BFFBilibiliGo
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.

AlertingGoGrafana
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.

AssemblyBootstrapGo
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.

BackendGohigh-concurrency
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.

BackendError HandlingGo
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.

Error HandlingGobackend-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
MaGe Linux Operations
MaGe Linux Operations
May 6, 2022 · Backend Development

Master Go’s net/url: URL Parsing, Escaping, and Query Handling Explained

This article provides a comprehensive guide to Go's net/url package, covering import methods, key functions like PathEscape, PathUnescape, QueryEscape, QueryUnescape, as well as the URL type fields and methods such as Parse, ResolveReference, and utilities for query manipulation, all illustrated with practical code examples.

BackendGoURL parsing
0 likes · 16 min read
Master Go’s net/url: URL Parsing, Escaping, and Query Handling Explained
ELab Team
ELab Team
Apr 28, 2022 · Frontend Development

Why ESBuild and SWC Are Revolutionizing Frontend Build Performance

This article explains what ESBuild and SWC are, why they dramatically speed up JavaScript bundling and compilation compared to traditional tools, and provides practical guidance on integrating them into modern frontend workflows such as Vite, Webpack, and custom scripts.

Frontend Build ToolsGoJavaScript bundler
0 likes · 18 min read
Why ESBuild and SWC Are Revolutionizing Frontend Build Performance
MaGe Linux Operations
MaGe Linux Operations
Apr 28, 2022 · Backend Development

How to Prevent HTTP 429 Errors with a Simple Go Request Queue

This article explains how to avoid HTTP 429 rate‑limit errors when calling third‑party APIs by wrapping each request in a struct and processing them through a channel‑based request queue written in Go, complete with usage examples and optional throttling.

APIGoRequest Queue
0 likes · 5 min read
How to Prevent HTTP 429 Errors with a Simple Go Request Queue
Tencent Cloud Developer
Tencent Cloud Developer
Apr 25, 2022 · Databases

Implementing a Simple SQLite‑like Database in Go

The article walks through building a minimal SQLite‑style database in Go, covering memory‑disk page storage, B‑tree indexing, simple SQL parsing for INSERT and SELECT, row serialization, a pager that flushes pages, and a basic REPL, while highlighting current single‑page limits and future extensions.

B+TreeGoSQLite
0 likes · 12 min read
Implementing a Simple SQLite‑like Database in Go
IT Services Circle
IT Services Circle
Apr 17, 2022 · Operations

Troubleshooting DNS Latency After Machine Replacement in a Go Service

The article details a step‑by‑step investigation of why HTTP request latency increased after moving a Go‑based service to new hardware, focusing on DNS resolution delays, the role of DNSmasq, Go's resolver implementation, and the experiments that led to fixing the issue.

GoLinuxMachine Replacement
0 likes · 14 min read
Troubleshooting DNS Latency After Machine Replacement in a Go Service
AntTech
AntTech
Apr 14, 2022 · Backend Development

The Journey of Dubbogo: From Solo Development to a Thriving Open‑Source Community

This article chronicles how 于雨 transformed Dubbogo—from a one‑person Go implementation of the Dubbo RPC framework into a large, cloud‑native open‑source community—detailing technical challenges, community building, personal sacrifices, and future goals for sustainable growth.

BackendDubboGo
0 likes · 18 min read
The Journey of Dubbogo: From Solo Development to a Thriving Open‑Source Community
Sohu Tech Products
Sohu Tech Products
Apr 13, 2022 · Backend Development

Understanding Go Memory Leaks and Using pprof for Profiling

This article explains why Go programs can still exhibit memory growth despite automatic garbage collection, describes how to identify and diagnose such issues with the built‑in pprof tool, and details the underlying sampling mechanism, memory fragmentation, and cgo‑related allocations.

GoProfilingRuntime
0 likes · 9 min read
Understanding Go Memory Leaks and Using pprof for Profiling
MaGe Linux Operations
MaGe Linux Operations
Apr 12, 2022 · Backend Development

Understanding Go’s CSP Model: Goroutine, Channel, Scheduler

This article explains Go’s concurrency fundamentals, distinguishing concurrency from parallelism, describing the CSP model built on goroutines and channels, and detailing the underlying M‑P‑G scheduler architecture—including thread models, runqueues, and load balancing—providing a comprehensive overview for developers.

CSPChannelGo
0 likes · 11 min read
Understanding Go’s CSP Model: Goroutine, Channel, Scheduler
Baidu Geek Talk
Baidu Geek Talk
Apr 12, 2022 · Backend Development

Five Practical Go Tips: Ballast Optimization, Benchmark & pprof, Testing Stubs, OOM Caused by Locks, and Memory Synchronization in Concurrency

This guide presents five practical Go techniques—using a large ballast slice to control GC timing, leveraging benchmark and pprof for performance profiling, applying the monkey library for test stubbing, avoiding unreleased locks that cause OOM, and employing proper synchronization primitives to prevent stale memory reads.

Goconcurrencytesting
0 likes · 12 min read
Five Practical Go Tips: Ballast Optimization, Benchmark & pprof, Testing Stubs, OOM Caused by Locks, and Memory Synchronization in Concurrency
BaiPing Technology
BaiPing Technology
Apr 11, 2022 · Backend Development

Automating API Development with Protobuf, GitLab CI, and Kratos

This article explains how to engineer APIs by automating protobuf file management, code generation, CI/CD pipelines, error handling, validation, and documentation generation using tools such as GitLab, Kratos, Apifox, and quicktype, ultimately improving development efficiency across backend and client teams.

API engineeringApifoxGo
0 likes · 20 min read
Automating API Development with Protobuf, GitLab CI, and Kratos
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 8, 2022 · Backend Development

How to Build an Automated Go Unit Test & Coverage Pipeline with Java Service

This article describes how to set up a low‑maintenance, automated unit‑test and integration‑test environment for Go applications using a Java service in a pre‑integration platform, covering Docker packaging, Go tool installation, coverage plugins, diff‑cover for incremental coverage, and REST APIs for task management.

AoneGocode coverage
0 likes · 13 min read
How to Build an Automated Go Unit Test & Coverage Pipeline with Java Service
Top Architect
Top Architect
Apr 6, 2022 · Backend Development

High‑Fidelity Baidu Wenku Clone Project Overview and Technical Stack

This article introduces a fully functional, open‑source Baidu Wenku‑style document library built with Go/Beego, Bootstrap, and MySQL, detailing its architecture, SVG‑based document rendering, point system, watermarking, and how to obtain the source code.

BeegoDocument ManagementGo
0 likes · 5 min read
High‑Fidelity Baidu Wenku Clone Project Overview and Technical Stack
Bilibili Tech
Bilibili Tech
Apr 2, 2022 · Backend Development

Overview and Architecture of Kratos v2 Go Microservice Framework

Kratos v2 is a lightweight, highly pluggable Go microservice framework that replaces the monolithic v1 design with a toolbox of interchangeable components—such as transport, middleware, logging, configuration, and service discovery—organized in a DDD‑inspired layout and extensible via protobuf‑defined plugins.

APIConfigurationFramework
0 likes · 18 min read
Overview and Architecture of Kratos v2 Go Microservice Framework
Alibaba Cloud Native
Alibaba Cloud Native
Mar 30, 2022 · Cloud Native

How Yurthub Implements Data Filtering in OpenYurt: Architecture and Code Walkthrough

Yurthub, a non‑intrusive edge‑computing component of OpenYurt, acts as a kube‑apiserver proxy with caching to enable offline stability and reduce API load, employing four data‑filtering rules—ServiceTopologyFilter, EndpointsFilter, MasterServiceFilter, and DiscardCloudService—each detailed with implementation code and operational considerations.

Data FilteringEdge ComputingGo
0 likes · 15 min read
How Yurthub Implements Data Filtering in OpenYurt: Architecture and Code Walkthrough
Tencent Cloud Developer
Tencent Cloud Developer
Mar 30, 2022 · Backend Development

Go High-Performance Programming: Concurrency Optimization Techniques

This article, the second in a Go high‑performance series, details concurrency optimizations including lock‑free data structures versus locked lists, sharding and RWMutex to cut lock contention, controlling goroutine creation with pooling, using sync.Once for cheap one‑time initialization, and employing sync.Cond for efficient goroutine notification.

GoGoroutineRWMutex
0 likes · 30 min read
Go High-Performance Programming: Concurrency Optimization Techniques
Tencent Cloud Developer
Tencent Cloud Developer
Mar 28, 2022 · Fundamentals

Go Performance Optimization: Data Structures, Memory Management, and Benchmarking

The guide details Go performance optimization techniques—including avoiding reflection‑based conversions, using proper capacity hints, preferring strconv over fmt, employing custom binary functions, optimizing string handling, struct layout, loop patterns, and sync.Pool reuse—backed by benchmarks that demonstrate significant speed and memory gains.

GoMemory Managementperformance
0 likes · 37 min read
Go Performance Optimization: Data Structures, Memory Management, and Benchmarking
IT Architects Alliance
IT Architects Alliance
Mar 27, 2022 · Backend Development

Simulating a 10‑Billion Red‑Envelope System with Go: From 3K to 6K QPS

This article details a step‑by‑step engineering experiment that reproduces a high‑throughput "red‑envelope" service, outlining the required hardware, software stack, load‑generation logic, monitoring setup, and performance results for handling up to 6 000 QPS on a 100‑million‑user scale.

BackendDistributed SystemsGo
0 likes · 21 min read
Simulating a 10‑Billion Red‑Envelope System with Go: From 3K to 6K QPS
High Availability Architecture
High Availability Architecture
Mar 24, 2022 · Backend Development

Understanding Go's Goroutine Scheduling: Design Principles, GMP Model, and Optimizations

The article reviews Dmitry Vyukov's 2019 talk on Go's goroutine scheduler, explains the GMP (goroutine‑M‑Processor) model, walks through its evolution from naive thread‑per‑goroutine to thread pools and work‑stealing, and discusses fairness, pre‑emptive scheduling, and possible future improvements.

GMP modelGoGoroutine
0 likes · 14 min read
Understanding Go's Goroutine Scheduling: Design Principles, GMP Model, and Optimizations
Tencent Cloud Developer
Tencent Cloud Developer
Mar 22, 2022 · Backend Development

Source Code Analysis of the netpoll Go High‑Performance Network Framework

The article dissects netpoll, a Go‑based high‑performance network framework that uses a Multi‑Reactor model with a main and sub‑reactors, detailing its server EventLoop, poll manager load‑balancing across epoll/kqueue, connection buffering and request handling, and the client’s non‑blocking dialing process.

GoServerclient
0 likes · 40 min read
Source Code Analysis of the netpoll Go High‑Performance Network Framework
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Mar 22, 2022 · Backend Development

Boosting a Dubbo Registry from 40 to 1100 QPS: Practical Performance Hacks

Through systematic measurement, bottleneck identification, and targeted optimizations—including lock redesign, Redis caching, and URL parsing improvements—the author transformed a Go‑based Dubbo registry’s registration throughput from 40 QPS to over 1100 QPS, demonstrating practical performance‑tuning techniques for high‑scale backend services.

BackendGoProfiling
0 likes · 12 min read
Boosting a Dubbo Registry from 40 to 1100 QPS: Practical Performance Hacks
Open Source Linux
Open Source Linux
Mar 22, 2022 · Fundamentals

How Linux Namespaces and Cgroups Enable Resource Isolation and Limits

This article explains how Linux namespaces provide resource isolation while cgroups enforce resource limits, detailing the six namespace types, relevant system calls, practical commands like unshare and cgcreate, and demonstrates CPU share control with Go code and cgroup configuration examples.

GoLinuxNamespaces
0 likes · 5 min read
How Linux Namespaces and Cgroups Enable Resource Isolation and Limits
Tencent Cloud Developer
Tencent Cloud Developer
Mar 17, 2022 · Fundamentals

Understanding Go's Goroutine Scheduler: Design, GMP Model, and Optimizations

The article explains Go’s GMP‑based goroutine scheduler, detailing how logical processors, thread‑local queues, and work‑stealing replace a naïve one‑goroutine‑per‑thread model, and discusses fairness, cooperative preemption, current limitations, and future optimizations compared with custom coroutine frameworks.

GMP modelGoGoroutine
0 likes · 14 min read
Understanding Go's Goroutine Scheduler: Design, GMP Model, and Optimizations
Bilibili Tech
Bilibili Tech
Mar 17, 2022 · Information Security

How to Secure SM2 Elliptic Curve Operations with Constant‑Time Techniques

This article explains why side‑channel attacks threaten SM2, SM3, and SM4 algorithms, describes the vulnerabilities of table‑lookup and double‑and‑add implementations, and presents constant‑time scalar multiplication and selection methods in Go to protect private keys on blockchain platforms.

GoSM2constant-time
0 likes · 13 min read
How to Secure SM2 Elliptic Curve Operations with Constant‑Time Techniques