Search

Discover articles.

Search across authors, categories, and technical themes. The layout mirrors the editorial references while staying responsive and fast.

Results

Matches for “golang”

164 results
Fundamentals Jul 4, 2024 Go Programming World

Understanding False Sharing and Cache Padding in Go

This article explains the concept of false sharing caused by CPU cache line interactions, demonstrates how cache padding can mitigate the performance penalty, and provides Go benchmark code and results to illustrate the impact on multi‑core concurrency.

performanceconcurrencygolangfalse sharingcache padding
Fundamentals May 27, 2024 Go Programming World

Best Practices for Naming Directories, Packages, and Files in Go Projects

This article explores Go naming conventions, covering directory, package, and file naming rules, practical examples, community consensus, and personal recommendations to help developers create clear, maintainable project structures.

golangGobest-practicesdirectory-structurenaming-conventionsfile-namespackage-names
Backend Development May 27, 2024 Go Programming World

Designing an Effective Go Web Project Directory Structure

This article explains the principles and recommended layout for organizing a large Go web project, covering readability, extensibility, standard Go project layout, and detailed descriptions of directories such as /cmd, /internal, /pkg, /configs, /deployments, and supporting files to improve maintainability and scalability.

backendwebgopkgproject-structuregolang-standardsinternal
Backend Development May 21, 2024 Rare Earth Juejin Tech Community

Design and Implementation of a High‑Performance Short URL Service

This article explains the motivation, architecture, resource estimation, code generation algorithms, data modeling, database partitioning, caching strategies, and implementation details for building a scalable short URL system that handles billions of links and high QPS workloads.

code generationbackend architecturescalabilitygolangredisdatabase partitioningshort URL
Backend Development May 10, 2024 Architect

Rate Limiting Algorithms: Fixed Window, Sliding Window, Leaky Bucket, Token Bucket, and Distributed Rate Limiting

This article explains the importance of rate limiting in microservice architectures, introduces four basic algorithms—fixed window, sliding window, leaky bucket, and token bucket—compares their advantages and disadvantages, and presents both single-machine and distributed implementations with Go code examples.

distributed systemsalgorithmmicroservicesgolangrate limiting
Backend Development May 5, 2024 Go Programming World

Using pflag for Command-Line Argument Parsing in Go

This article introduces the Go third‑party flag package pflag, detailing its POSIX/GNU‑style features, basic and advanced usage, flag syntax, name normalization, NoOptDefVal handling, deprecation/hiding mechanisms, and how to mix it with the standard flag package.

golangGocommand-lineflag-parsingpflag
Backend Development Mar 7, 2024 Sanyou's Java Diary

Mastering Rate Limiting: Algorithms, Pros, Cons, and Distributed Solutions

This article explores why rate limiting is essential for high‑concurrency services, introduces four core algorithms with Go implementations, compares their strengths and weaknesses, and presents practical distributed limiting strategies using Redis, load balancers, and coordination services.

distributed systemsperformancealgorithmmicroservicesgolangrate limiting
Backend Development Feb 28, 2024 Tencent Cloud Developer

Comprehensive Guide to Rate Limiting Algorithms and Distributed Rate Limiting Solutions

This guide explains why rate limiting is essential for micro‑service stability, outlines six design principles, details four classic algorithms—fixed window, sliding window, leaky bucket, and token bucket—and compares centralized Redis, load‑balancer cache, and coordination‑service distributed solutions.

distributed systemsalgorithmMicroservicesGolangrate limitingtoken bucket
Backend Development Feb 24, 2024 Rare Earth Juejin Tech Community

Introducing Karta: A Lightweight Go Library for Asynchronous and Batch Function Task Processing

This article introduces Karta, a lightweight Go library that provides two modes—Pipeline for unknown‑size asynchronous tasks and Group for known‑size batch tasks—offering a concise API, configurable workers, and built‑in callbacks to simplify high‑performance concurrent processing in backend applications.

backendconcurrencygolangbatch-processinggolibraryasync
Backend Development Jan 28, 2024 Architecture & Thinking

How Baidu’s Unified Long‑Connection Service Scales Millions of Real‑Time Connections

This article details Baidu’s internally built unified long‑connection service in Go, covering its motivation, architecture, functional implementation, performance optimizations, multi‑business support, deployment strategy, and lessons learned for delivering secure, high‑concurrency, low‑latency real‑time connectivity across mobile applications.

real-time messagingbackend architecturegolanghigh concurrencylong connection
Previous Page 9 Next