Tagged articles

Go

1967 articles · Page 15 of 20
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.

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

CSPGochannel
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 engineeringApifoxCI/CD
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.

APIConfigurationGo
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 FilteringGoKubernetes
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.

BenchmarkGoHigh Performance
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.

GoPerformancememory management
0 likes · 37 min read
Go Performance Optimization: Data Structures, Memory Management, and Benchmarking
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 modelGoThread Pool
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.

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

GoLinuxResource Isolation
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 modelGoconcurrency
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.

GoSM2Side-channel
0 likes · 13 min read
How to Secure SM2 Elliptic Curve Operations with Constant‑Time Techniques
IT Services Circle
IT Services Circle
Mar 16, 2022 · Backend Development

Introducing the Go Generic Utility Library samber/lo

This article introduces the open‑source Go generic utility library samber/lo, explains how to install Go 1.18 beta and the library, and demonstrates common operations such as type conversion, concurrent processing, containment checks, filtering, deduplication, grouping, chunking, and ternary-like expressions with concise code examples.

Gobackend developmentgenerics
0 likes · 7 min read
Introducing the Go Generic Utility Library samber/lo
21CTO
21CTO
Mar 16, 2022 · Backend Development

What’s New in Go 1.18? Fuzz Testing, Generics, and 20% Performance Boost

Google’s Go 1.18 release introduces native fuzz testing, generics support, module workspaces, and up to 20% performance gains on ARM64 and Apple M1, enhancing security and productivity for developers while reinforcing Go’s pivotal role in cloud‑native projects like Kubernetes and Docker.

GoGo 1.18backend development
0 likes · 5 min read
What’s New in Go 1.18? Fuzz Testing, Generics, and 20% Performance Boost
Cyber Elephant Tech Team
Cyber Elephant Tech Team
Mar 16, 2022 · Backend Development

Mastering GoKit: Building Scalable Microservices with Go

This article introduces microservice concepts, explains GoKit's architecture and onion model, and walks through building a simple calculation service in Go, progressively adding logging, metrics, and middleware using the decorator pattern to achieve a clean, decoupled three‑layer design.

Decorator PatternGoGoKit
0 likes · 14 min read
Mastering GoKit: Building Scalable Microservices with Go
Baidu Geek Talk
Baidu Geek Talk
Mar 7, 2022 · Backend Development

Design and Implementation of GDP Streaming RPC Framework (Go Version of brpc Streaming)

The Go‑based GDP Streaming RPC framework extends Baidu’s internal brpc‑compatible RPC system with a high‑performance streaming transport that preserves message order, supports multiple concurrent streams per socket, offers customizable serialization and event‑driven handlers, and enables efficient large‑scale data transfers such as voice or replica synchronization, achieving comparable latency and throughput to the original C++ implementation.

GoPerformanceRPC
0 likes · 12 min read
Design and Implementation of GDP Streaming RPC Framework (Go Version of brpc Streaming)
MaGe Linux Operations
MaGe Linux Operations
Mar 2, 2022 · Backend Development

How Go’s New Arena Package Boosts Performance by Up to 15%

The Go community’s arena proposal introduces a contiguous‑memory allocation method that reduces allocation overhead and enables bulk freeing, offering up to 15% CPU and memory savings for large applications while ensuring safety through dynamic checks.

GoPerformance Optimizationarena allocation
0 likes · 5 min read
How Go’s New Arena Package Boosts Performance by Up to 15%
DevOps Cloud Academy
DevOps Cloud Academy
Mar 2, 2022 · Operations

Promoter: Rendering AlertManager Graphs for DingTalk Notifications Using Go

The article introduces Promoter, a Go‑based webhook that fetches Prometheus metrics, renders alert graphs with gonum/plot, stores the images in S3‑compatible object storage, and embeds them in DingTalk notifications, providing deployment instructions, template customization, and core implementation details.

AlertmanagerDingTalkGo
0 likes · 10 min read
Promoter: Rendering AlertManager Graphs for DingTalk Notifications Using Go
Architecture Digest
Architecture Digest
Mar 1, 2022 · Backend Development

Implementing and Testing a High‑Throughput WeChat Red‑Packet System: 1M Connections and Up to 60k QPS

This article details a practical reproduction of a large‑scale WeChat red‑packet service, describing the design goals, hardware and software setup, concurrency architecture, monitoring tools, and performance results that demonstrate a single‑machine handling one million connections and up to sixty thousand queries per second.

GoQPSWeChat
0 likes · 17 min read
Implementing and Testing a High‑Throughput WeChat Red‑Packet System: 1M Connections and Up to 60k QPS
FunTester
FunTester
Feb 24, 2022 · Backend Development

How to Add Load Balancing to a Custom Go DNS Resolver

This guide shows how to modify a Go custom DNS resolver to perform simple load balancing by predefining IP addresses and randomly selecting one for each new connection, including full code examples and test output.

BackendCustom ResolverDNS
0 likes · 5 min read
How to Add Load Balancing to a Custom Go DNS Resolver
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 23, 2022 · Backend Development

Go Error Handling Practices in ZuanZuan Operations: Usage and Management

This article explains how ZuanZuan's operations team applies Go's error handling mechanisms—including error values, panic/recover, sentinel errors, and custom error types—along with practical guidelines and code examples to improve reliability and maintainability of production services.

Gobackend developmenterror handling
0 likes · 13 min read
Go Error Handling Practices in ZuanZuan Operations: Usage and Management
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Feb 21, 2022 · Backend Development

Deep Dive into Go net/http and Gin Framework Source Code

This article provides a comprehensive analysis of Go's net/http library and the Gin framework, detailing request handling flow, router implementation, middleware chaining, and context management, while presenting key source code excerpts to illustrate how HTTP services are built and extended in Go.

ContextGinGo
0 likes · 18 min read
Deep Dive into Go net/http and Gin Framework Source Code
FunTester
FunTester
Feb 17, 2022 · Backend Development

Implementing a Custom DNS Resolver for Go HTTP Client Testing

This article demonstrates how to extend Go's HTTP client with a custom DNS resolver using net.Dialer, configure load‑balancing, and test the implementation with sample code and a simple mock service, providing a practical guide for backend developers.

DNSGohttp-client
0 likes · 6 min read
Implementing a Custom DNS Resolver for Go HTTP Client Testing
Tencent Cloud Developer
Tencent Cloud Developer
Feb 16, 2022 · Backend Development

Table-Driven Testing in Go: Concepts, Examples, and Advanced Techniques

The article explains Go’s table‑driven testing pattern, showing how separating test data into a slice of structs simplifies test code, improves quality, and enables subtests, parallel execution, assertions, mocking, and custom templates, illustrated with a GetWeekDay example and advanced techniques.

GoMockingParallel Testing
0 likes · 14 min read
Table-Driven Testing in Go: Concepts, Examples, and Advanced Techniques
Tencent Cloud Developer
Tencent Cloud Developer
Feb 10, 2022 · Backend Development

Understanding CGO: Usage, Mechanisms, and Best Practices in Go

CGO lets Go programs call C functions and vice versa by importing "C", generating intermediate files, handling type conversion, managing runtime transitions, and requiring careful memory and pointer handling, with best‑practice guidelines to avoid leaks, scheduler issues, and thread explosion.

C interoperabilityGocgo tool
0 likes · 33 min read
Understanding CGO: Usage, Mechanisms, and Best Practices in Go
MaGe Linux Operations
MaGe Linux Operations
Feb 7, 2022 · Cloud Native

Why K8ssandra Is Switching from Helm to Its Own Operator

The article explains how K8ssandra, an Apache Cassandra distribution for Kubernetes, evolved from using Helm charts to developing a dedicated Operator to overcome Helm's limitations, improve multi‑cluster support, and align more closely with Kubernetes best practices.

CassandraGoHelm
0 likes · 13 min read
Why K8ssandra Is Switching from Helm to Its Own Operator
IT Services Circle
IT Services Circle
Feb 1, 2022 · Fundamentals

Comprehensive Guide to Recommended Programming Videos and Resources for Python, Go, Frontend, and Data Analysis

This article curates a wide range of high‑quality video tutorials, books, and online resources covering Python fundamentals, web crawling, data analysis, machine learning, Go language development, and front‑end technologies, offering practical recommendations and rating scores to help learners choose suitable study material.

Data AnalysisGoLearning Resources
0 likes · 12 min read
Comprehensive Guide to Recommended Programming Videos and Resources for Python, Go, Frontend, and Data Analysis
Architect
Architect
Jan 30, 2022 · Backend Development

Designing a High‑Concurrency Ticket Spike System with Load Balancing, Nginx, and Go

This article explains how to design and implement a high‑concurrency ticket‑seckill system by analyzing the 12306 architecture, introducing multi‑layer load balancing, demonstrating Nginx weighted round‑robin configuration, and providing Go and Redis code to achieve stable, low‑latency ticket purchasing under massive simultaneous requests.

GoNginxRedis
0 likes · 19 min read
Designing a High‑Concurrency Ticket Spike System with Load Balancing, Nginx, and Go
MaGe Linux Operations
MaGe Linux Operations
Jan 28, 2022 · Databases

How to Parse MySQL Binlog with Go: Build a Simple Replication Demo

This article demonstrates how to use Go to parse MySQL binlog events and synchronize data by implementing a lightweight replication client, covering configuration, server module, packet handling, handshake, registration, dump command, and providing complete source code examples with explanations.

BinlogGoReplication
0 likes · 16 min read
How to Parse MySQL Binlog with Go: Build a Simple Replication Demo
Beike Product & Technology
Beike Product & Technology
Jan 27, 2022 · Backend Development

Performance Optimization of Beike IM: Scaling Group Chat to Over 300 QPS

This article details how the Beike instant‑messaging system was analyzed, bottlenecks identified, and a series of backend optimizations—including business isolation, increased concurrency, computation reduction, and Redis connection‑pool redesign—were applied to boost 300‑person group‑chat throughput from 15 QPS to over 320 QPS, achieving more than a twenty‑fold performance gain.

GoIMRedis
0 likes · 12 min read
Performance Optimization of Beike IM: Scaling Group Chat to Over 300 QPS
Java Backend Technology
Java Backend Technology
Jan 26, 2022 · Backend Development

How to Simulate 100 Million WeChat Red‑Packet Requests on a Single Server

This article details a practical backend engineering experiment that reproduces the massive load of 100 billion WeChat red‑packet requests by simulating one million concurrent users on a single machine, covering target metrics, hardware/software choices, architecture, implementation steps, performance testing, and analysis of the results.

GoLoad Simulationbackend architecture
0 likes · 18 min read
How to Simulate 100 Million WeChat Red‑Packet Requests on a Single Server
Top Architect
Top Architect
Jan 25, 2022 · Backend Development

Design and Implementation of a High‑Concurrency WeChat Red‑Envelope System Simulating 10 Billion Requests

This article details the design, goals, hardware and software choices, implementation techniques, performance testing phases, and analysis of a prototype backend capable of handling one million concurrent connections and up to 60 k QPS to simulate the massive load of ten billion WeChat red‑envelope requests.

GoQPSbackend architecture
0 likes · 18 min read
Design and Implementation of a High‑Concurrency WeChat Red‑Envelope System Simulating 10 Billion Requests
Hacker Afternoon Tea
Hacker Afternoon Tea
Jan 24, 2022 · Backend Development

How to Benchmark Sentry SDK Overhead on Web Servers

This guide explains how to measure the performance impact of the Sentry SDK on web servers by using the open‑source Sentry SDK Benchmark suite, which runs baseline and instrumented versions of TechEmpower framework tests inside Docker Compose and reports latency and resource usage.

BenchmarkGoPerformance Monitoring
0 likes · 6 min read
How to Benchmark Sentry SDK Overhead on Web Servers
Code DAO
Code DAO
Jan 18, 2022 · Backend Development

Implementing Pagination, Filters, and Error Handling in a Go Clean Architecture with Ent and gqlgen (Part 3)

This tutorial walks through adding pagination and flexible where‑filters to the User List interface, configuring gqlgen extensions, handling GraphQL errors, wrapping mutations in transactions, and building unit, integration, and end‑to‑end tests for a Go clean‑architecture project using Ent and gqlgen.

Goclean architectureent
0 likes · 23 min read
Implementing Pagination, Filters, and Error Handling in a Go Clean Architecture with Ent and gqlgen (Part 3)
Tencent Qidian Tech Team
Tencent Qidian Tech Team
Jan 18, 2022 · Operations

Unlock Go Performance: Master pprof, trace, GODEBUG, and Escape Analysis

This comprehensive guide explores Go performance optimization techniques, covering pprof profiling, trace analysis, GODEBUG diagnostics, and escape analysis, while providing practical code examples and real‑world case studies to help developers identify and resolve CPU, memory, and goroutine bottlenecks in production services.

GODEBUGGoProfiling
0 likes · 40 min read
Unlock Go Performance: Master pprof, trace, GODEBUG, and Escape Analysis
Tencent Cloud Developer
Tencent Cloud Developer
Jan 17, 2022 · Backend Development

Applying Clean Architecture, Dependency Injection, and Testing in a Go Backend Project

The article demonstrates how to structure a Go backend using Clean Architecture’s four‑layer model, interface‑driven design, and compile‑time dependency injection with Google Wire, providing concrete examples of repository, service, and API implementations and unit‑testing each layer with sqlmock, gomock, and httptest.

Gobackend developmenttesting
0 likes · 17 min read
Applying Clean Architecture, Dependency Injection, and Testing in a Go Backend Project
Code DAO
Code DAO
Jan 15, 2022 · Backend Development

Implementing Clean Architecture with ent and gqlgen – Part 2

This article walks through integrating the four Clean Architecture layers—entity, use‑case, interface‑adapter, and framework/driver—into a Go application using ent for ORM and gqlgen for GraphQL, covering folder layout, ULID primary keys, Node interface support, and pagination implementation.

GoGraphQLclean architecture
0 likes · 19 min read
Implementing Clean Architecture with ent and gqlgen – Part 2
macrozheng
macrozheng
Jan 13, 2022 · Backend Development

Why Rewrite Dubbo in Go? Business and Technical Reasons Behind Dubbo‑Go

This article examines the motivations for rewriting the Java‑centric Dubbo RPC framework in Go, discussing language efficiency, company‑level technology choices, the advantages of Go’s lightweight concurrency for gateways, and how Dubbo‑Go bridges Java and Go in modern microservice and service‑mesh architectures.

DubboGoRPC
0 likes · 10 min read
Why Rewrite Dubbo in Go? Business and Technical Reasons Behind Dubbo‑Go
FunTester
FunTester
Jan 11, 2022 · Backend Development

Mastering GORM: A Beginner’s Guide to Go ORM CRUD Operations

This article walks through setting up GORM in a Go project, covering dependency management, database initialization, model definition, and practical examples of select, insert, update, delete, raw SQL execution, and transaction handling with detailed code snippets.

BackendCRUDGORM
0 likes · 9 min read
Mastering GORM: A Beginner’s Guide to Go ORM CRUD Operations
Laravel Tech Community
Laravel Tech Community
Jan 11, 2022 · Cloud Native

Alibaba Sentinel: Open‑Source Cloud‑Native High‑Availability Protection for Distributed Services (Sentinel Go v1.0.4 Release)

The article introduces Alibaba's open‑source Sentinel, a cloud‑native high‑availability protection component for distributed microservices that offers flow control, circuit breaking, concurrency limiting and adaptive overload protection, and highlights the new Sentinel Go v1.0.4 features such as Prometheus metrics, enhanced circuit‑breaker recovery, Apollo data source, and updated Kubernetes CRD support for version 1.22+.

Circuit BreakingFlow ControlGo
0 likes · 2 min read
Alibaba Sentinel: Open‑Source Cloud‑Native High‑Availability Protection for Distributed Services (Sentinel Go v1.0.4 Release)
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Jan 3, 2022 · Backend Development

Building a Simple Rule Engine with Go's AST and Parser

This article explains how to design a lightweight rule engine in Go by first using JSON‑defined rules, then leveraging Go's token scanner and AST parser to evaluate boolean expressions such as header and cookie checks, and finally discusses extending the engine with custom primitives and GoYACC for more complex grammars.

ASTDSLGo
0 likes · 16 min read
Building a Simple Rule Engine with Go's AST and Parser
Code DAO
Code DAO
Jan 1, 2022 · Backend Development

Building a Clean Architecture GraphQL App with ent and gqlgen (Part 1)

This tutorial walks through creating a maintainable GraphQL application using Go, demonstrating how to set up a Docker‑based MySQL database, configure Viper and Echo, define ent schemas, run migrations, integrate gqlgen with ent, and implement queries and mutations following Clean Architecture principles.

EchoGoGraphQL
0 likes · 22 min read
Building a Clean Architecture GraphQL App with ent and gqlgen (Part 1)
Liangxu Linux
Liangxu Linux
Jan 1, 2022 · Cloud Native

How to Gracefully Stop Docker Containers Using Signals, ENTRYPOINT, and CMD

This article explains Linux signals, the difference between exec and shell forms of Dockerfile ENTRYPOINT and CMD, and demonstrates with Go and shell script examples how to configure containers so that docker stop sends SIGTERM correctly for a clean shutdown instead of a forced kill.

ENTRYPOINTGoGraceful Shutdown
0 likes · 11 min read
How to Gracefully Stop Docker Containers Using Signals, ENTRYPOINT, and CMD
FunTester
FunTester
Dec 31, 2021 · Operations

FunTester’s 2021 Leap: 100k+ QPS Performance & Distributed Testing Insights

The 2021 year‑end summary details FunTester’s rapid growth, the expansion of its public account, major performance upgrades reaching over 100 k QPS, the design of a distributed testing framework, dynamic load models, log‑replay innovations, and the author’s deep dive into Go, Java and Groovy.

GoJavaLoad Testing
0 likes · 10 min read
FunTester’s 2021 Leap: 100k+ QPS Performance & Distributed Testing Insights
Baidu Geek Talk
Baidu Geek Talk
Dec 29, 2021 · Backend Development

How to Seamlessly Sync Swagger Docs to Yapi for Automatic API Updates

This guide explains how to keep Swagger annotations in sync with Yapi by generating a swagger.json file, exposing it via Nginx, and configuring Yapi’s automatic import, so that API documentation updates automatically after each code change without manual effort.

API documentationGoNginx
0 likes · 14 min read
How to Seamlessly Sync Swagger Docs to Yapi for Automatic API Updates
Tencent Cloud Middleware
Tencent Cloud Middleware
Dec 28, 2021 · Cloud Native

Integrating PolarisMesh with gRPC-Go for Full-Service Governance

This guide explains how Tencent's open‑source PolarisMesh service mesh can be combined with the Go implementation of gRPC to add service discovery, health checking, dynamic routing, circuit breaking, graceful shutdown, and traffic limiting, providing step‑by‑step code examples and integration architecture.

GoPolarisMeshgRPC-Go
0 likes · 9 min read
Integrating PolarisMesh with gRPC-Go for Full-Service Governance
Tencent Cloud Developer
Tencent Cloud Developer
Dec 27, 2021 · Databases

Design and Implementation of a Simple Go ORM for MySQL

The article introduces a lightweight Go ORM for MySQL, explains native connection setup, details the SmallormEngine design with chainable methods for Table, Where, Insert, Update, Delete, and BatchInsert, and demonstrates how reflection builds SQL fragments while handling errors and supporting fluent query composition.

CRUDGoMySQL
0 likes · 32 min read
Design and Implementation of a Simple Go ORM for MySQL
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 24, 2021 · Fundamentals

Evolution of Garbage Collection in Go: From Mark‑Sweep to Hybrid Write Barriers

This article explains how Go's garbage collection has progressed from the simple stop‑the‑world mark‑and‑sweep algorithm in Go 1.3, through the tri‑color concurrent marking with insert and delete write barriers in Go 1.5, to the hybrid write‑barrier approach introduced in Go 1.8 that dramatically reduces pause times while preserving memory safety.

Garbage CollectionGoMark-and-Sweep
0 likes · 31 min read
Evolution of Garbage Collection in Go: From Mark‑Sweep to Hybrid Write Barriers
Tencent Cloud Developer
Tencent Cloud Developer
Dec 22, 2021 · Backend Development

Performance Analysis of Go map Concurrency: sync.Map vs map+RWLock vs concurrent‑map

The article compares Go’s native map (which crashes under concurrent access), a map protected by sync.RWMutex, the lock‑free read‑optimized sync.Map introduced in Go 1.9, and the sharded orcaman/concurrent‑map, showing that sync.Map excels in read‑heavy workloads while sharded maps better handle frequent inserts, and suggesting other cache libraries for eviction or expiration needs.

Goconcurrencysync.Map
0 likes · 20 min read
Performance Analysis of Go map Concurrency: sync.Map vs map+RWLock vs concurrent‑map
Tencent Cloud Developer
Tencent Cloud Developer
Dec 20, 2021 · Backend Development

Go Concurrency Basics, Libraries, and Best Practices

The article explains Go’s scheduler (M, P, G), demonstrates goroutine, channel, and select usage, covers sync primitives, atomic ops, context cancellation, singleflight, common pitfalls, debugging tools, and a channel‑driven chatroom case study, offering best‑practice guidance for efficient concurrent programming.

GoPerformancechannel
0 likes · 21 min read
Go Concurrency Basics, Libraries, and Best Practices
21CTO
21CTO
Dec 15, 2021 · Backend Development

Go 1.18 Beta1 Adds Generics & New Tools, and Meet the Neo Web Framework

The Go 1.18 Beta1 release introduces generics support, workspace mode, fuzz testing, and performance improvements, while the newly announced Neo framework offers a lightweight, MIT‑licensed solution for building Go web applications with simple installation and example code.

Beta ReleaseGoNeo Framework
0 likes · 5 min read
Go 1.18 Beta1 Adds Generics & New Tools, and Meet the Neo Web Framework
High Availability Architecture
High Availability Architecture
Dec 15, 2021 · Backend Development

Understanding Go Modules: From GOPATH to Modern Dependency Management

This article explains the evolution of Go's development workflow from the legacy GOPATH mode to the modern Go Modules system, details version‑specific changes, answers common migration questions, and provides a step‑by‑step tutorial with code examples for creating, testing, and managing Go modules in production projects.

GOPATHGoGo modules
0 likes · 13 min read
Understanding Go Modules: From GOPATH to Modern Dependency Management
DeWu Technology
DeWu Technology
Dec 14, 2021 · Operations

Online Service Alarm Handling and Performance Profiling in Go

The article outlines a systematic SOP‑driven approach for diagnosing online service alarms and performance issues in Go, detailing a toolbox that includes pprof, trace, goroutine visualizers, perf and eBPF, and recommends application‑level optimizations, system tuning, and continuous profiling to accelerate root‑cause identification and reduce incident frequency.

GoOnline ServiceSOP
0 likes · 11 min read
Online Service Alarm Handling and Performance Profiling in Go