This article shares the author's insights on why engineers and leaders must conduct code reviews, identifies common causes of poor code such as duplication and premature decisions, and presents a set of design principles, model‑driven thinking, and concrete Go code examples to help improve software quality and maintainability.
This article introduces the Hey load‑testing tool, explains how to install and run it with specific QPS settings, analyzes the resulting metrics and charts, and offers practical tips for identifying bottlenecks such as network bandwidth or CPU usage during capacity planning.
This article details a practical approach to building a single‑machine prototype that supports one million concurrent connections and processes up to 60,000 QPS, simulating the massive load of 100 billion WeChat red‑packet requests with Go, Linux, and custom monitoring tools.
This article describes the design, implementation, and performance testing of a simulated WeChat red‑packet service capable of handling up to 100 billion requests, detailing target load calculations, hardware and software choices, concurrency strategies in Go, monitoring tools, and experimental results across multiple QPS levels.
This article explains the purpose and operation modes of Prometheus exporters, details the text-based metric exposition format including HELP, TYPE, and sample lines for counters, gauges, summaries, and histograms, and provides a complete Go example showing how to build, run, and expose a custom exporter with Prometheus client libraries.
This article details a real‑world migration from PHP to Golang for a high‑traffic mini‑program backend, explaining the performance bottlenecks of PHP, the advantages of Go such as goroutine concurrency and low‑memory footprint, the step‑by‑step implementation, caching strategy, monitoring, tooling, and the measurable latency and stability improvements achieved.
This article analyses the limitations of existing global unique ID solutions such as Snowflake, presents the design of a new high‑performance, time‑independent Mist algorithm with extended lifespan, and describes its practical Redis‑backed service Medis, including performance benchmarks and architectural considerations.
This article explores the importance of code review for engineers and leaders, examines common pitfalls such as duplicated code and premature optimization, presents core software design principles like KISS and composition, and offers practical guidelines and Golang examples to improve code quality and maintainability.
This article shares practical principles and concrete guidelines for effective code review and backend engineering, covering why reviews are essential, common pitfalls like duplicated code and premature optimization, design philosophies such as composition over inheritance, and actionable rules for maintaining clean, maintainable Go codebases.
Design Principlesbackend best practicescode review
The article shares a senior engineer's insights on why code review is essential, outlines common pitfalls such as duplicated code, premature optimization, and poor design, and presents concrete principles and practical guidelines—including KISS, composition over inheritance, and disciplined logging—to improve code quality and maintainability in large‑scale backend projects.
This article introduces Filebeat as a container log collector, explains why it was chosen, outlines its core architecture and processing flow, and provides a practical configuration example for sending logs to Kafka, offering a solid foundation for further development and deeper source‑code analysis.
The article outlines five major DevOps trends for 2020—including AI‑driven automation, the rise of Golang, serverless architecture, cloud‑native practices, and the growing focus on DevSecOps—explaining how each will reshape software delivery and operational efficiency.
This guide walks you through downloading the Go source, manually installing it on a Linux server, configuring workspace and environment variables, and then using VSCode for remote development, debugging, and handling command‑line arguments and environment variables in Go programs.
This article demonstrates how to use the Go programming language together with the chromedp library to drive a headless Chrome instance for web page screenshots, PDF generation, full‑page capture, and device emulation, providing complete code examples and deployment tips.
This article demonstrates how to use Go with the chromedp library to drive headless Chrome for element screenshots, full‑page captures, PDF generation, and device emulation, offering a lightweight alternative to Selenium‑based solutions.
This guide walks you through enabling the Windows Subsystem for Linux, downloading Ubuntu from the Microsoft Store, completing the installation, updating packages, and adding Go tools, providing screenshots and exact commands so you can develop Linux applications directly on Windows 10.
This article details a backend engineering practice that simulates 100 billion shake‑red‑packet requests by building a single‑machine prototype supporting one million connections, achieving peak QPS of 60 k, and demonstrates the methodology, hardware setup, code design, monitoring, and performance analysis.
This article explains the concept of locks, why they are needed in concurrent programming, and provides an in‑depth look at Go's synchronization primitives—including CAS, atomic operations, spinlocks, semaphores, and the evolution of the sync.Mutex implementation with code examples and performance considerations.
This roundup highlights the latest cloud‑native developments, including Golang 1.14’s production‑grade module support, Cilium 1.7’s networking enhancements, critical Kubernetes PR fixes, the Eventing 2020 roadmap, a new open‑source supply‑chain tool, and several recommended technical reads.
The article outlines five major DevOps trends for 2020—including AI‑driven automation, the rising popularity of Golang, the shift toward Serverless and cloud‑native architectures, and the growing emphasis on DevSecOps—highlighting how these developments will transform software delivery and IT operations worldwide.
This article explains the inner workings of etcd, identifies performance bottlenecks across Raft, storage, and network layers, and provides concrete server‑side hardware and software tuning, a new O(1) freelist algorithm, plus client‑side usage guidelines to run a stable, high‑throughput etcd cluster.
This article explains the internal representation of Go slices, how they are created and initialized, the mechanics of append and capacity growth, slicing behavior, deep‑copy using the copy function, and whether slices are passed by value or reference, all illustrated with source code and assembly excerpts.
This article demonstrates how to shrink Go application Docker images and accelerate CI builds by applying multi‑stage builds, consolidating RUN commands, cleaning up layers, and leveraging Docker's cache‑from feature to reuse previously built layers in GitLab CI pipelines.
This article explains how to use Go modules for reliable dependency management, covering historical tools, semantic versioning, vendoring, module creation, testing, upgrading and tidying dependencies, and best practices for committing go.mod and go.sum files.
This article describes how a single‑machine prototype was built in Go to simulate a WeChat red‑envelope service capable of handling up to 6 × 10⁴ QPS, supporting one million concurrent connections, and processing 10 billion shake‑red‑envelope requests through careful load‑balancing, monitoring, and performance analysis.
This article explains how the Go community drives the future "Go 2" language updates through a standardized proposal selection and evaluation workflow, shows how to locate proposals on GitHub using specific labels, and points to official releases and blog resources for early access and detailed information.
This article explores Go's goroutine implementation by dissecting the M‑P‑G model, scheduling strategies, preemption mechanisms, and low‑level context‑switch details, complemented with code snippets and assembly examples to illustrate how lightweight user‑level threads achieve high concurrency.
This article explains HTTP/2’s new features—HPACK header compression using static and dynamic tables with Huffman coding, and Server Push via PUSH_PROMISE frames—detailing how they reduce bandwidth, improve latency, and the underlying stream state machine, illustrated with code snippets and diagrams.
This article explains how Mafengwo transformed its search service by replacing serial function calls with a Golang‑based concurrent proxy, reducing average latency from 400‑500 ms to around 240 ms while improving scalability, fault tolerance, and resource utilization.
This article describes how Zhaozhuan built an automated, business‑transparent log‑collection solution for its container cloud platform by evaluating several approaches, adopting Alibaba Cloud's open‑source log‑pilot, customizing its deployment, and addressing practical issues such as time‑zone bugs, latency, and duplicate collection.
This article traces the history, design motivations, implementation methods, protocol details, and Golang‑based ZMQ architecture of a cloud‑phone platform that enables remote real‑device debugging, covering security monitoring, performance optimization, and practical deployment diagrams.
KafkaBridge is an open‑source, multi‑language SDK built on librdkafka that offers a minimal, easy‑to‑use interface for producing and consuming messages in Apache Kafka, with optimizations for PHP‑FPM, extensive language support, and detailed performance benchmarks.
KafkaBridge is a lightweight, multi‑language SDK that wraps Kafka read/write operations, offering a minimal, reliable API for C/C++, PHP, Python and Go, with php‑fpm long‑connection optimizations, and includes compilation, usage, and performance testing details.
KafkaBridge is a lightweight, multi-language SDK that simplifies Kafka read/write operations, offering unified interfaces, long‑connection reuse for PHP‑FPM, and reliable message delivery, with detailed compilation steps, usage examples, and performance benchmarks across C++, Python, PHP, and Go.
This article shares practical Golang notes, covering compilation, package structure, basic syntax, common pitfalls like GOPATH issues, and step‑by‑step screenshots of setting up a Hello World program in Eclipse.
This article explains how the PouchContainer project automates code‑style enforcement and comprehensive Golang unit testing using tools like golint, gometalinter, shellcheck, markdownlint, table‑driven tests, and mock implementations, integrating them into CI pipelines to ensure reliable releases.
This article provides a comprehensive technical overview of Ant Financial’s Service Mesh data‑plane SOFAMosn, covering its architectural background, layered design, core modules, performance optimizations, supported protocols, and future roadmap within a cloud‑native microservices ecosystem.
This article traces the history, requirements, design, and implementation of a cloud‑phone platform that enables remote real‑device debugging using ADB over TCP, ZMQ‑based proxies, and Golang services to achieve high‑performance, secure, and scalable debugging across separated deployments.
This article provides a comprehensive technical overview of SOFAMosn, the Golang‑based data‑plane of Ant Financial's Service Mesh, covering its background, layered architecture, core design, module breakdown, performance optimizations, roadmap, and practical deployment considerations.
This article details the three‑stage evolution of Ctrip's image service architecture—from an early NFS‑backed design with Squid caching, through a Varnish‑and‑Lua powered middle stage, to the current Go‑based multi‑process system using FastDFS—highlighting the challenges, solutions, and performance outcomes.
This article presents a comprehensive technical sharing on Golang high‑performance engineering, covering architecture design, profiling tools, concurrency optimizations, distributed rate limiting, timer mechanisms, GC tuning, and deployment strategies, supplemented with PPT links and extensive code excerpts for practical reference.
Facing massive memory usage and latency in a PHP‑based live‑stream bullet chat, we iteratively re‑engineered the system—splitting Redis, limiting broadcasts, sharding rooms, then rebuilding it in Go with distributed room management, concurrent broadcasting, and extensive testing, achieving stable operation for tens of thousands of concurrent connections.
This article explains the architecture and operation of Qcmd‑HTTP, a Golang‑based task distribution system on the 360 cloud platform, covering its high‑availability cluster design, task types, execution flow, status tracking, and callback mechanisms for decoupled backend services.
This article details how to design, implement, and benchmark a single‑machine backend capable of handling up to 1 million concurrent connections and 60 000 queries per second while simulating the shake‑and‑send red‑packet workflow of a large‑scale messaging app, including capacity calculations, architecture choices, Go‑based implementation, and multi‑stage performance testing.
This article describes how to design, implement, and evaluate a backend system that simulates the Spring Festival red‑packet service, achieving up to 6 × 10⁴ QPS on a single server while handling one million concurrent connections, and discusses the hardware, software, architecture, and performance results.
This article explains how to improve HTTP API debugging and testing by using two Golang‑based tools—pproxy, a cross‑platform proxy for capturing and modifying traffic, and api‑front, a BS‑architecture front‑end that forwards, records, and replicates API calls—detailing their features, usage, and deployment scenarios.
This article explains how Wonder's log monitoring system works, covering rolling count, string and numeric matching types, the underlying Go implementation with tail reading, alert strategies, and future enhancements for handling large log files.
Zhou Tang, head of WeChat Pay operations at Tencent, shares how his team built a massive MySQL‑based payment platform handling up to 150 k transactions per second, covering background, DB‑CMDB design, change management, monitoring, security, high availability, and why Golang became their core development language.
Qcmd, the command execution system behind 360’s private HULK cloud platform, replaces SaltStack with an asynchronous, Golang‑based architecture that ensures high‑availability, encrypted messaging, and reliable mass‑host command execution across thousands of servers, dramatically reducing task timeouts and operational overhead.
Cloud OperationsCommand Executiondistributed systems
This article explains Go's slice data structure, how slices are represented in memory, common pitfalls with value passing, slicing, expanding, and provides practical examples of functions like copy, append, and differences between make and new for slices.
The presentation details how Wangsu’s core P2P caching system was re‑engineered for rapid business growth by redesigning it in Go, adopting distributed design, micro‑service and AOP architectures, and successfully refactoring the platform to improve scalability, maintainability, and performance.
The talk recounts how Panda TV’s initial architecture supported rapid growth but eventually required higher performance and concurrency, prompting a migration to a Golang‑based system that refactored core services and produced a suite of utility libraries and tooling, with lessons and best‑practice insights shared.
Since mid‑2015 Meitu has been integrating Golang to build high‑performance, highly‑available online services, creating supporting components and infrastructure, and after a year of production use the team identified numerous pitfalls, gathered practical insights, and now shares deployment challenges, architectural decisions, and best‑practice recommendations.
The Meitu Technology Salon’s second offline session, held on July 24 2016, gathered senior R&D engineers to explore practical Golang applications through three case studies—Meitu’s high‑performance services, Panda TV’s live‑streaming architecture overhaul, and NetEase’s P2P cache system redesign—offering insights and networking for 100 participants.
This article details Didi’s Passport authentication system architecture, describing how language migration, service decomposition, flexible ticket and SMS code designs, multi‑region active‑active deployment, an independent Argus access‑control layer, and interface splitting together achieve high availability and low latency under extreme traffic peaks.
The article explains Go's lack of try/catch, demonstrates how to use error return values with examples, shows how to create custom error types, and presents an optimized pattern that aggregates error checks to produce cleaner, more efficient code without performance loss.
This article details the design and implementation of a high‑concurrency, easily extensible proxy built in Go for Weibo's recommendation system, covering background, challenges with twemproxy, technical research, architecture, configuration, logging, monitoring, module breakdown, business logic, performance testing, and future improvements.
This article describes the background, challenges, technical research, architectural design, module implementation, performance testing, and lessons learned when building a Golang‑based, high‑concurrency, easily extensible proxy to replace twemproxy for Weibo's recommendation system.
A benchmark using ApacheBench compares Nginx static serving, a Golang HTTP server, and a PHP7+Swoole server under 100‑concurrent connections for one million requests, showing PHP7+Swoole achieving roughly 75 % higher QPS than both Nginx and Golang, along with detailed environment, code, and resource usage data.
This article explains how to design and implement an efficient Golang‑based server‑client monitoring solution called OWL, covering data packet structures, network protocols, client and server architecture, concurrency handling with goroutines, and practical code examples for high‑throughput operations.
The article details a backend architecture overhaul using Golang to address search inefficiencies, slow response times, and low conversion rates by introducing asynchronous data filtering, fast in‑memory computation, and performance‑tuned serialization and garbage‑collection strategies.