Tagged articles

Go

1967 articles · Page 12 of 20
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 21, 2024 · Backend Development

Recreating the Spring Festival Gala Magic Trick Using Go

This article walks through a step‑by‑step Go implementation of the popular Spring Festival Gala magic trick, explaining the underlying Josephus‑style algorithm, showing each transformation of a slice of cards with complete code snippets, and demonstrating how the final single card matches the hidden one.

GoJosephus problemMagic Trick
0 likes · 9 min read
Recreating the Spring Festival Gala Magic Trick Using Go
Bilibili Tech
Bilibili Tech
Feb 20, 2024 · Backend Development

Investigation and Optimization of Unexpected AAAA DNS Requests in Go Applications

The article investigates why Go applications unexpectedly send AAAA DNS queries to a secondary nameserver, tracing the issue to the built‑in resolver’s handling of non‑recursive responses from a NetScaler proxy, and recommends using the cgo resolver, enabling recursion, or forcing IPv4 to eliminate the added latency.

DNSGoIPv4
0 likes · 14 min read
Investigation and Optimization of Unexpected AAAA DNS Requests in Go Applications
Go Programming World
Go Programming World
Feb 19, 2024 · Backend Development

Implementing Context Managers in Go: Emulating Python's with Using defer and Anonymous Functions

This article explores how to replicate Python's context manager behavior in Go by examining defer's delayed execution, demonstrating its limitations in loops, and presenting three solutions—anonymous functions, a WithClose helper, and a withLock-inspired pattern—to ensure timely resource release.

GoWithCloseanonymous function
0 likes · 10 min read
Implementing Context Managers in Go: Emulating Python's with Using defer and Anonymous Functions
AI Illustrated Series
AI Illustrated Series
Feb 13, 2024 · Backend Development

Which Go Web Framework Reigns Supreme? A Deep Comparative Analysis

This article systematically compares the most popular Go web frameworks—Beego, Buffalo, Echo, Gin, Iris, and Revel—by evaluating their popularity, learning curve, routing capabilities, middleware ecosystems, server features, session handling, template engines, testing support, and other core functionalities, complete with concrete code examples.

BackendGoWeb Framework
0 likes · 14 min read
Which Go Web Framework Reigns Supreme? A Deep Comparative Analysis
Open Source Tech Hub
Open Source Tech Hub
Feb 10, 2024 · Fundamentals

Why Go Re‑Entered TIOBE’s Top‑10: A Historical Perspective

This article traces Go’s rise to the TIOBE top‑10 ranking, recounting its 2009 debut, early hype, subsequent decline, and recent resurgence driven by a strict release cycle and the popularity of Docker and Kubernetes, while also explaining the index’s methodology.

GoLanguage PopularityTIOBE Index
0 likes · 4 min read
Why Go Re‑Entered TIOBE’s Top‑10: A Historical Perspective
Nullbody Notes
Nullbody Notes
Feb 6, 2024 · Backend Development

A Minimal 70-Line Go Coroutine Pool: Simple and Elegant

This article presents a concise 70‑line Go implementation of a coroutine pool, explaining its design, how it manages task queues and worker goroutines, handles timeouts, and provides the full source code for easy integration.

Goconcurrencycoroutine pool
0 likes · 5 min read
A Minimal 70-Line Go Coroutine Pool: Simple and Elegant
FunTester
FunTester
Feb 5, 2024 · Backend Development

How to Write Testable Business Code in Go: From Pure Functions to Dependency Injection

This article explains why unit testing is often seen as burdensome in long‑running Go projects and provides practical techniques—such as using pure functions, extracting dependencies, object‑oriented design, and function variableization—to make business code easy to test and maintain.

Dependency InjectionGoPure Functions
0 likes · 16 min read
How to Write Testable Business Code in Go: From Pure Functions to Dependency Injection
MaGe Linux Operations
MaGe Linux Operations
Feb 1, 2024 · Backend Development

How to Master In‑Memory Caching: Strategies, Pitfalls, and Performance Boosts

This article explores common caching scenarios, selection criteria, and best‑practice pitfalls, demonstrates a Go demo with configurable cache modes, compares byte‑versus‑struct caches, discusses concurrency, expiration, failover, cache transfer, lock contention, memory management, and provides benchmark results to guide high‑performance backend development.

Cache EvictionCachingGo
0 likes · 23 min read
How to Master In‑Memory Caching: Strategies, Pitfalls, and Performance Boosts
MaGe Linux Operations
MaGe Linux Operations
Feb 1, 2024 · Cloud Native

Inside Kubernetes kube-scheduler: A Deep Dive into Its Code Structure and Scheduling Logic

This article dissects the internal architecture of Kubernetes' kube-scheduler, walking through its initialization with Cobra, the Setup function, the creation of scheduler instances, the priority queue mechanics, scheduling cycles, and binding processes, providing comprehensive code examples to illuminate each step of the scheduling workflow.

Gocloud-nativecode analysis
0 likes · 19 min read
Inside Kubernetes kube-scheduler: A Deep Dive into Its Code Structure and Scheduling Logic
政采云技术
政采云技术
Jan 30, 2024 · Cloud Native

Understanding the Core Workflow of Kubernetes Informer in client-go

This article explains the internal workflow of the Kubernetes informer package in client-go, covering its architecture, key components such as Reflector, DeltaFIFO, and Indexer, and provides a step‑by‑step code example that demonstrates how informers are created, registered, started, and used to handle watch events efficiently.

ControllerDeltaFIFOGo
0 likes · 19 min read
Understanding the Core Workflow of Kubernetes Informer in client-go
21CTO
21CTO
Jan 28, 2024 · Backend Development

How PayPal Processed Billions Daily with 8 VMs Using Go Actors

This article explores how PayPal achieved the processing of billions of daily transactions using only eight virtual machines by adopting an actor‑model architecture built with Go, detailing the underlying challenges, network and resource optimizations, and providing a complete Go code example.

Actor modelGoPayPal
0 likes · 11 min read
How PayPal Processed Billions Daily with 8 VMs Using Go Actors
Nullbody Notes
Nullbody Notes
Jan 26, 2024 · Backend Development

Building a Distributed Redis Cluster in Go Using Simple Consistent Hash

This article walks through creating a functional Redis service called EasyRedis, focusing on implementing a distributed cluster with a consistent‑hash algorithm in Go, including detailed code examples, node mapping, command routing, and relay mechanisms.

Code ExampleConsistent HashDistributed Cluster
0 likes · 11 min read
Building a Distributed Redis Cluster in Go Using Simple Consistent Hash
Nullbody Notes
Nullbody Notes
Jan 25, 2024 · Backend Development

Building a Redis Connection Pool in Go: Design and Implementation

This article walks through the design and Go implementation of a reusable Redis connection pool, covering the pool data structure, object acquisition and release logic, handling of active limits and waiting queues, and an extended per‑IP socket pool for distributed Redis clusters.

BackendGoRedis
0 likes · 10 min read
Building a Redis Connection Pool in Go: Design and Implementation
Tencent Cloud Developer
Tencent Cloud Developer
Jan 25, 2024 · Backend Development

How to Write Testable Business Code in Go: A Practical Guide

The guide shows that by consciously designing Go data structures and function interfaces—using pure functions, parameter injection, interface abstractions, struct‑based objects, or function‑variable patterns—and avoiding init(), developers can expose and control all dependencies, making business code inherently testable and achieving high unit‑test coverage.

Dependency InjectionGoMocking
0 likes · 17 min read
How to Write Testable Business Code in Go: A Practical Guide
Architect
Architect
Jan 24, 2024 · Operations

Mastering End-to-End Tracing in Go Microservices with OpenTracing and Zipkin

This article walks through the complete design and implementation of full‑stack distributed tracing for Go‑based microservices, explaining correlation IDs, OpenTracing concepts, component roles, client and server code, database and service call tracing, compatibility issues, and best‑practice design guidelines.

GoOpenTracingZipkin
0 likes · 20 min read
Mastering End-to-End Tracing in Go Microservices with OpenTracing and Zipkin
Caiyun Tech Team
Caiyun Tech Team
Jan 24, 2024 · Backend Development

How We Built a High‑Performance Elevation API with 30 m Resolution

This article details the end‑to‑end process of replacing low‑resolution SRTM data with 30‑meter ASTER elevation data, redesigning storage and access using JuiceFS, Go, and sync.Pool, and achieving sub‑millisecond latency for 1500 QPS in a Kubernetes environment.

GeoTIFFGoJuiceFS
0 likes · 9 min read
How We Built a High‑Performance Elevation API with 30 m Resolution
Nullbody Notes
Nullbody Notes
Jan 23, 2024 · Databases

Implementing Redis Transactions in Go: A Complete Walkthrough

This article walks through building a functional Redis server in Go, focusing on transaction support (MULTI, EXEC, WATCH, UNWATCH, DISCARD), using locks for atomicity, version tracking for watch, and an undo‑log mechanism for rollback, with code examples and demo screenshots.

GoLockRedis
0 likes · 11 min read
Implementing Redis Transactions in Go: A Complete Walkthrough
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 15, 2024 · Backend Development

Understanding Delaying Queue and Priority Queue in WorkQueue: Implementation, Usage, and Underlying Quadruple Heap

This article explains the design, implementation details, and practical usage of the Delaying Queue and Priority Queue modules in the WorkQueue library, covering their inheritance from the core Queue, the role of the Quadruple Heap data structure, and providing Go code examples for integration in backend systems.

BackendDataStructureDelayingQueue
0 likes · 16 min read
Understanding Delaying Queue and Priority Queue in WorkQueue: Implementation, Usage, and Underlying Quadruple Heap
Nullbody Notes
Nullbody Notes
Jan 13, 2024 · Backend Development

How to Build a Redis‑Style Sorted Set with Skiplist in Go

This article walks through implementing a Redis‑compatible sorted‑set in Go, covering requirement analysis, data‑structure design with a map and skiplist, detailed insertion and search algorithms, complete code examples, and edge‑case handling, all illustrated with diagrams and sample output.

BackendGoRedis
0 likes · 13 min read
How to Build a Redis‑Style Sorted Set with Skiplist in Go
Tencent Cloud Developer
Tencent Cloud Developer
Jan 11, 2024 · Backend Development

Delve Debugger for Go: Installation, Configuration, and Command Guide

Delve, the primary Go debugger, is installed via its official guide, requires disabling inlining with appropriate gcflags, supports flexible location specifications and rich expressions, offers multiple debugging modes (debug, exec, attach, core), configurable settings, runtime commands, breakpoint types, variable and stack inspection, and integrates seamlessly with Goland.

DelveGoIDE integration
0 likes · 28 min read
Delve Debugger for Go: Installation, Configuration, and Command Guide
Architecture & Thinking
Architecture & Thinking
Jan 8, 2024 · Artificial Intelligence

How Baidu Comate Supercharges Coding: A Practical AI Assistant Guide

This article introduces Baidu Comate, an AI-powered coding assistant built on the Wenxin model, explains how to install it, demonstrates its real-time code completion, comment generation, test creation, and optimization features across multiple languages and IDEs, and highlights its benefits for developers.

AI coding assistantGoVS Code
0 likes · 10 min read
How Baidu Comate Supercharges Coding: A Practical AI Assistant Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 8, 2024 · Backend Development

Design and Implementation of a Go WorkQueue Library: Architecture, Interface, and Performance Analysis

This article introduces the Go WorkQueue project, detailing its motivation, overall architecture, layered design of Queue, Simple Queue, Delaying Queue, Priority Queue, and RateLimiting Queue, compares underlying data structures such as DoubleLinkedList versus slice, presents performance benchmarks, and explains memory‑fragmentation mitigation using sync.Pool.

GoPerformanceQueue
0 likes · 12 min read
Design and Implementation of a Go WorkQueue Library: Architecture, Interface, and Performance Analysis
Tencent Cloud Developer
Tencent Cloud Developer
Jan 4, 2024 · Backend Development

High‑Performance Go Programming: Benchmarks, Profiling, and Optimization Techniques

The article shows how to write high‑performance Go code by spotting bottlenecks, using go‑test benchmarks and pprof profiling, and applying optimizations such as avoiding reflection, preferring strong‑type conversions, selecting appropriate map implementations, zero‑allocation string/slice tricks, efficient loops, generics, stack allocation, data alignment, pre‑allocation, and suitable lock primitives.

BenchmarkGoOptimization
0 likes · 34 min read
High‑Performance Go Programming: Benchmarks, Profiling, and Optimization Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 1, 2024 · Backend Development

Introducing Hasaki: A Simple Golang HTTP Restful Client with Custom Decoders and Middleware

This article describes the motivation, design, and usage of Hasaki, a lightweight Go HTTP Restful client that supports custom status‑code handling, multiple data formats such as JSON, XML, YAML and protobuf, builder‑style chaining, and extensible middleware, providing code examples and a plugin architecture.

Custom DecoderGoHTTP Client
0 likes · 10 min read
Introducing Hasaki: A Simple Golang HTTP Restful Client with Custom Decoders and Middleware
Nullbody Notes
Nullbody Notes
Dec 30, 2023 · Backend Development

Building a Simple In-Memory Redis Clone with Go

This article walks through the third part of an eleven‑article series that implements a functional Redis‑compatible in‑memory database in Go, detailing how the PING, AUTH, SELECT, SET and GET commands are parsed, routed and executed with concrete code examples.

BackendData StructuresGo
0 likes · 12 min read
Building a Simple In-Memory Redis Clone with Go
System Architect Go
System Architect Go
Dec 26, 2023 · Cloud Native

Distributed Leader Election and Kubernetes Lease

Distributed leader election ensures a single node performs exclusive tasks in high‑availability systems, with common implementations like Etcd, Kafka, Elasticsearch, and Zookeeper using algorithms such as Paxos, Raft, and ZAB, while Kubernetes provides the Lease resource to manage leader election via a distributed lock.

GoPaxosdistributed systems
0 likes · 7 min read
Distributed Leader Election and Kubernetes Lease
政采云技术
政采云技术
Dec 19, 2023 · Backend Development

Principles and Simple Implementation of a Search Engine in Go

This article explains the fundamental concepts of search engine technology—including forward and inverted indexes, tokenizers, stop words, synonym handling, ranking algorithms, and NLP integration—and provides a concise Go implementation with code examples and performance testing.

GoInformation RetrievalNLP
0 likes · 21 min read
Principles and Simple Implementation of a Search Engine in Go
Nullbody Notes
Nullbody Notes
Dec 18, 2023 · Backend Development

How to Build a Deep Copy Utility in Go Using reflect

This article walks through implementing a deep‑copy function in Go with the reflect package, explaining key concepts such as reflect.ValueOf, reflect.New, pointer handling, and recursive copying, and provides a complete code example and visual diagrams.

Deep CopyGoprogramming
0 likes · 4 min read
How to Build a Deep Copy Utility in Go Using reflect
Nullbody Notes
Nullbody Notes
Dec 17, 2023 · Backend Development

Build Your Own Go ORM: Logger, Struct Mapping, CRUD, Transactions & Hooks

This tutorial walks through creating a lightweight Go ORM—covering a custom logger, converting structs to table metadata, implementing basic CRUD operations, handling transactions, and adding hook callbacks—while exposing the core Session data structure and providing a GitHub reference.

GORMGoORM
0 likes · 7 min read
Build Your Own Go ORM: Logger, Struct Mapping, CRUD, Transactions & Hooks
Baidu Geek Talk
Baidu Geek Talk
Dec 13, 2023 · Backend Development

How Baidu Revamped Its Search Display Service: From PHP to Go and Graph Engines

This article details Baidu's search display service evolution, outlining its original C and PHP/HHVM implementation, the three major challenges of high development difficulty, limited architecture capability, and low reusability, and presents a comprehensive solution using a graph execution engine, common operators, and a phased migration to Go.

BackendGoGraph engine
0 likes · 15 min read
How Baidu Revamped Its Search Display Service: From PHP to Go and Graph Engines
Nullbody Notes
Nullbody Notes
Dec 12, 2023 · Backend Development

Build a High‑Performance Go Cache Library (EasyCache) from Scratch

This article walks through implementing EasyCache, a Go‑based in‑memory cache with sharding, lock‑free concurrency, LRU eviction, and configurable expiration, explaining the underlying data structures, goroutine cleanup logic, and key handling with concrete code examples.

BackendGoLRU
0 likes · 9 min read
Build a High‑Performance Go Cache Library (EasyCache) from Scratch
Tencent Cloud Developer
Tencent Cloud Developer
Dec 12, 2023 · Fundamentals

Understanding Go Function Pointers and Their Performance Impact

The article explains how Go’s function values introduce an extra indirection and trigger escape analysis, making indirect calls slower than C pointers, and offers optimization tactics such as avoiding function‑pointer calls, using switch‑based dispatch, or applying the unsafe noescape trick when safe.

Gocompilerescape analysis
0 likes · 15 min read
Understanding Go Function Pointers and Their Performance Impact
ITPUB
ITPUB
Dec 11, 2023 · Backend Development

Go vs Rust in 2024: Which Language Should Power Your Projects?

This article compares Go and Rust across performance, concurrency, memory safety, development speed, and developer experience, highlighting each language's strengths and weaknesses to help developers decide which language best fits their specific project requirements in 2024.

GoLanguage comparisonPerformance
0 likes · 12 min read
Go vs Rust in 2024: Which Language Should Power Your Projects?
Nullbody Notes
Nullbody Notes
Dec 9, 2023 · Backend Development

Designing Load Balancing and Keep‑Alive Strategies in Go

This article walks through implementing three load‑balancing algorithms (random, round‑robin, weighted round‑robin) in Go, explains the weighted selection math with step‑by‑step examples, and presents two service‑liveness solutions—heartbeat via Docker/Kafka and HTTP health checks—complete with code snippets and deployment commands.

GoKafkadocker
0 likes · 9 min read
Designing Load Balancing and Keep‑Alive Strategies in Go
Nullbody Notes
Nullbody Notes
Dec 9, 2023 · Databases

How to Build a Crash‑Safe KV Store Engine in Go

This article walks through building a simple yet enterprise‑grade key‑value storage engine in Go, covering WAL implementation, LSM‑Tree structure, SkipList‑based in‑memory storage, transaction handling for Put/Get/Delete, and the on‑disk log format, with a complete 1,000‑line codebase hosted on GitHub.

GoKV storeLSM Tree
0 likes · 6 min read
How to Build a Crash‑Safe KV Store Engine in Go
dbaplus Community
dbaplus Community
Dec 7, 2023 · Backend Development

How to Merge Go Microservices into a Single Pod and Cut CPU Usage by 60%

This article explains how the team transformed a Go‑based microservice recommendation system into a single‑pod monolithic application using tRPC‑Go, detailing performance bottlenecks, code‑level mock‑proxy techniques, deployment adjustments, and the resulting dramatic reduction in CPU consumption.

BackendGocloud-native
0 likes · 13 min read
How to Merge Go Microservices into a Single Pod and Cut CPU Usage by 60%
Senior Brother's Insights
Senior Brother's Insights
Dec 3, 2023 · Fundamentals

Mastering Go's Switch: Advanced Patterns and Common Pitfalls

This guide explores Go's versatile switch statement, covering basic syntax, initializer and value parts, literal true switches, short assignments, multiple case values, fallthrough behavior, default placement nuances, and type switches, all illustrated with clear code examples.

GoTutorialgolang
0 likes · 9 min read
Mastering Go's Switch: Advanced Patterns and Common Pitfalls
Senior Brother's Insights
Senior Brother's Insights
Dec 3, 2023 · Backend Development

Rust vs Go in 2024: Which Language Wins Your Next Project?

This article compares Rust and Go across performance, concurrency, memory safety, development speed, and developer experience, highlighting each language's strengths and weaknesses to help developers choose the most suitable language for their 2024 projects.

GoLanguage comparisonRust
0 likes · 13 min read
Rust vs Go in 2024: Which Language Wins Your Next Project?
ITPUB
ITPUB
Dec 1, 2023 · Backend Development

Turning tRPC‑Go Microservices into a High‑Performance Monolith

This article explains how a large‑scale recommendation system built with tRPC‑Go microservices was refactored into a single‑process monolith to cut network overhead, reduce CPU usage by over 60%, and retain the benefits of microservice development while minimizing code changes.

GoPerformanceProxy
0 likes · 14 min read
Turning tRPC‑Go Microservices into a High‑Performance Monolith
LouZai
LouZai
Dec 1, 2023 · Backend Development

Understanding All Major Distributed Lock Implementations in One Guide

This article explains what distributed locks are, outlines their key properties, classifies implementation approaches, and provides detailed walkthroughs of MySQL, Redis, Etcd, and ZooKeeper based locks—including code examples, trade‑offs, and best‑practice recommendations.

GoMySQLRedis
0 likes · 21 min read
Understanding All Major Distributed Lock Implementations in One Guide
MaGe Linux Operations
MaGe Linux Operations
Nov 27, 2023 · Fundamentals

Mastering Go Structs: From Definition to Advanced Embedding

This comprehensive guide walks you through Go structs—covering their definition, instantiation, methods, receivers, anonymous fields, embedding, and method expressions—while providing clear code examples and practical guidelines for effective use in Go programming.

BackendGoStruct
0 likes · 9 min read
Mastering Go Structs: From Definition to Advanced Embedding
Nullbody Notes
Nullbody Notes
Nov 27, 2023 · Backend Development

Build a Simple Go RPC Framework – A Beginner-Friendly Project

This article walks Go beginners through designing and implementing a lightweight RPC framework called easyrpc, covering protocol design, message serialization, network communication, graceful server shutdown, client stub generation with reflect.MakeFunc, and concurrent request handling, with full source code on GitHub.

Code ExampleGoRPC
0 likes · 16 min read
Build a Simple Go RPC Framework – A Beginner-Friendly Project
Nullbody Notes
Nullbody Notes
Nov 26, 2023 · Fundamentals

Binary Tree Right Side View Using Level‑Order Traversal in Go

The article explains how to obtain the rightmost node values at each depth of a binary tree by performing a level‑order (BFS) traversal, and provides a complete Go implementation that records the last node of every level as the right‑side view.

BFSGoalgorithm
0 likes · 4 min read
Binary Tree Right Side View Using Level‑Order Traversal in Go
Bilibili Tech
Bilibili Tech
Nov 24, 2023 · Cloud Native

Chaos Engineering and Fault Injection Practices at Bilibili: Architecture, Implementation, and Automation

Bilibili built a middleware‑based chaos engineering platform that injects faults into Golang microservices via AOP, supporting server‑ and client‑side, database, cache, and queue components, with fine‑grained instance, request, target, and user controls, automated dependency collection, experiment orchestration, and CI integration to boost system reliability.

Gochaos engineeringmicroservices
0 likes · 18 min read
Chaos Engineering and Fault Injection Practices at Bilibili: Architecture, Implementation, and Automation
Nullbody Notes
Nullbody Notes
Nov 24, 2023 · Fundamentals

How to Solve the Coin Change Problem Using Dynamic Programming

This article explains the classic coin change problem, models it as a minimum‑coin DP task, derives the recurrence relation, shows how to initialize the DP array with a large sentinel value, and provides a complete Go implementation that returns the optimal count or -1 when impossible.

DP recurrenceGoalgorithm
0 likes · 5 min read
How to Solve the Coin Change Problem Using Dynamic Programming
Nullbody Notes
Nullbody Notes
Nov 23, 2023 · Fundamentals

How to Merge Overlapping Intervals in Go

This article explains how to merge overlapping intervals in Go by first sorting them by their start points and then iteratively combining adjacent intervals, with a complete code example and step‑by‑step reasoning.

Goalgorithmintervals
0 likes · 3 min read
How to Merge Overlapping Intervals in Go
Nullbody Notes
Nullbody Notes
Nov 22, 2023 · Fundamentals

How to Compare Version Numbers in Go – Interview Solution

This article explains the key steps for comparing dot‑separated version strings—ignoring leading zeros, handling different lengths, and performing left‑to‑right numeric comparison—accompanied by a complete Go implementation.

Goalgorithmstring parsing
0 likes · 3 min read
How to Compare Version Numbers in Go – Interview Solution
Liangxu Linux
Liangxu Linux
Nov 21, 2023 · Backend Development

How Go’s Built‑in HTTP Server Handles Connections and Requests

This article walks through building a minimal Go HTTP server, explains how ListenAndServe internally binds, listens, and accepts connections, details the server’s main loop, request handling, routing logic, and shows how to customize connection and state hooks with concrete code examples.

BackendGoconcurrency
0 likes · 8 min read
How Go’s Built‑in HTTP Server Handles Connections and Requests
37 Interactive Technology Team
37 Interactive Technology Team
Nov 20, 2023 · Fundamentals

What Are Stack and Heap?

The article explains Go’s stack and heap memory, showing that stack allocations are fast, LIFO‑ordered and compile‑time sized while heap allocations grow upward, require garbage collection, and occur when variables escape a function, urging developers to prefer stack use for better performance.

Garbage CollectionGoHeap
0 likes · 6 min read
What Are Stack and Heap?
Nightwalker Tech
Nightwalker Tech
Nov 18, 2023 · Fundamentals

Reflections on a Decade of Judgments About Go and Rust

Looking back over ten years, the author revisits earlier blog posts and shares personal insights and judgments about the Go and Rust programming languages, concluding that choices often outweigh effort in shaping one’s technical path.

GoRustTechnology Reflection
0 likes · 2 min read
Reflections on a Decade of Judgments About Go and Rust
Nullbody Notes
Nullbody Notes
Nov 17, 2023 · Fundamentals

How to Implement an O(1) LRU Cache for Interview Success

This article explains how to implement an O(1) LRU cache in Go by combining a hash table with a doubly linked list, detailing the put and get operations, eviction policy, and providing complete, ready‑to‑run source code along with illustrative diagrams.

Cache EvictionData StructuresDoubly Linked List
0 likes · 4 min read
How to Implement an O(1) LRU Cache for Interview Success
Nullbody Notes
Nullbody Notes
Nov 17, 2023 · Fundamentals

How to Decode Nested Strings Using a Stack in Go

This article explains how to decode nested strings formatted as k[encoded_string] by using a stack to record repetition counts and substrings, detailing the push/pop logic with examples like 2[a3[b]] and 3[a]2[bc] and providing a complete Go implementation.

Goalgorithmnested strings
0 likes · 5 min read
How to Decode Nested Strings Using a Stack in Go
AI Illustrated Series
AI Illustrated Series
Nov 16, 2023 · Fundamentals

Unlocking Go’s Secrets: nil, context, slices, maps, and concurrency primitives

This article provides a comprehensive, step‑by‑step analysis of Go’s core concepts—including nil handling, the context package, string and rune internals, unsafe pointers, memory alignment, WaitGroup, semaphores, channels, slices, map implementations, sync.Map, garbage collection, and reflection—illustrated with concrete code examples and detailed reasoning.

ContextGarbage CollectionGo
0 likes · 30 min read
Unlocking Go’s Secrets: nil, context, slices, maps, and concurrency primitives
Nullbody Notes
Nullbody Notes
Nov 16, 2023 · Fundamentals

Understanding the Combination Sum Problem with Backtracking in Go

This article explains the LeetCode 39 "Combination Sum" problem, illustrates recursion with an apple‑picking analogy, details the backtracking algorithm pattern, and provides a complete, well‑commented Go implementation that handles unlimited reuse of candidates and pruning based on the target sum.

GoLeetCodebacktracking
0 likes · 5 min read
Understanding the Combination Sum Problem with Backtracking in Go
DeWu Technology
DeWu Technology
Nov 15, 2023 · Backend Development

Thread Profiling: Design and Implementation of Client‑Server Performance Analysis

Thread profiling uses threshold‑triggered tasks on business threads to capture stack snapshots, which a dedicated profiler thread sends via high‑performance gRPC to a server that queues them in Kafka, enriches and stores them in ClickHouse, correlates with OpenTelemetry traces, and provides metrics that let developers quickly pinpoint latency bottlenecks and improve system stability.

GoJavaKafka
0 likes · 11 min read
Thread Profiling: Design and Implementation of Client‑Server Performance Analysis
Nullbody Notes
Nullbody Notes
Nov 15, 2023 · Fundamentals

Binary Search Solution for LeetCode 162: Find Peak Element

This article explains how to solve LeetCode problem 162 (Find Peak Element) in O(log n) time using a binary‑search approach, detailing the three possible cases, providing pseudocode, and presenting a complete Go implementation that handles boundary conditions as negative infinity.

GoLeetCodeO(log n)
0 likes · 4 min read
Binary Search Solution for LeetCode 162: Find Peak Element
Tencent Cloud Developer
Tencent Cloud Developer
Nov 14, 2023 · Cloud Native

Monolithizing tRPC-Go Microservices: Architecture, Implementation, and Performance Gains

The article shows how to monolithize selected tRPC‑Go microservices by defining protobuf‑generated Go interfaces and swapping RPC proxies for in‑process implementations via a proxy API, cutting CPU usage by 61% while keeping microservice flexibility and offering best‑practice guidelines for Go service design.

Gocloud-nativemicroservices
0 likes · 13 min read
Monolithizing tRPC-Go Microservices: Architecture, Implementation, and Performance Gains
Nullbody Notes
Nullbody Notes
Nov 11, 2023 · Fundamentals

How to Solve LeetCode 53: Maximum Subarray Sum with Dynamic Programming

The article explains a dynamic‑programming approach to the classic “Maximum Subarray Sum” problem, defining dp[i] as the best sum ending at index i, deriving the recurrence dp[i]=max(dp[i‑1]+nums[i], nums[i]), initializing base cases, and providing complete Go code.

GoLeetCodealgorithm
0 likes · 4 min read
How to Solve LeetCode 53: Maximum Subarray Sum with Dynamic Programming
Nullbody Notes
Nullbody Notes
Nov 9, 2023 · Interview Experience

Validating Stack Sequences in Go: A Simple Microsoft Interview Solution

The article explains how to determine whether a given push sequence and pop sequence form a valid stack operation by using a temporary Go slice as a stack, iterating through the push list, and repeatedly popping while the top matches the next pop element, finally returning a boolean result.

GoLeetCodealgorithm
0 likes · 3 min read
Validating Stack Sequences in Go: A Simple Microsoft Interview Solution
Su San Talks Tech
Su San Talks Tech
Nov 2, 2023 · Backend Development

How WeChat Powers Group Chats and Red Packets: Inside the Backend Architecture

This article dissects the design of WeChat's group chat system, covering functional and non‑functional requirements, high‑level component architecture, database schemas, face‑to‑face group creation, real‑time messaging, red‑packet algorithms, and Go code implementation, revealing how massive concurrency, performance, and storage challenges are solved.

GoSystem DesignWeChat
0 likes · 22 min read
How WeChat Powers Group Chats and Red Packets: Inside the Backend Architecture
Amap Tech
Amap Tech
Nov 1, 2023 · Backend Development

Gaode Go Ecosystem Evolution, Cloud‑Native Serverless Practices, and Project Refactoring Experience

The article details Gaode’s journey of building a high‑performance Go ecosystem that scaled from zero to tens of millions of QPS, comparing Go with Java and Erlang, outlining cloud‑native serverless architecture, and sharing real‑world refactoring and optimization case studies such as a million‑QPS rendering gateway and a Go‑based sharding middleware.

GCGoPerformance
0 likes · 34 min read
Gaode Go Ecosystem Evolution, Cloud‑Native Serverless Practices, and Project Refactoring Experience
Senior Brother's Insights
Senior Brother's Insights
Oct 26, 2023 · Fundamentals

Tabs vs Spaces: Why Go Chooses Tabs and Others Favor Spaces

The article examines the long‑standing debate between tabs and spaces for code indentation, citing a massive GitHub analysis that shows spaces dominate most languages while Go uniquely enforces tabs, and explains the technical, historical, and practical reasons behind these preferences and how IDEs can enforce consistent styles.

GoSpacescoding standards
0 likes · 7 min read
Tabs vs Spaces: Why Go Chooses Tabs and Others Favor Spaces
Efficient Ops
Efficient Ops
Oct 24, 2023 · Operations

How to Monitor Business Metrics with Prometheus in Kubernetes

This article explains how to use Prometheus to monitor business‑level metrics in a Kubernetes environment, covering observability fundamentals, metric definitions, metric types, exposing metrics via a /metrics endpoint, and practical Go code examples for defining, recording, and scraping custom metrics.

GoKubernetesPrometheus
0 likes · 11 min read
How to Monitor Business Metrics with Prometheus in Kubernetes
Tencent Cloud Developer
Tencent Cloud Developer
Oct 19, 2023 · Fundamentals

Profile-Guided Optimization (PGO) Principles and Practice in Go and C++

Profile‑Guided Optimization (PGO) collects runtime profiling data to recompile programs for higher performance, reducing branch mispredictions and improving code layout; Go gained built‑in PGO in 1.21 with typical 5 % gains, while C++ sees 15‑18 % QPS improvements and devirtualization benefits, and future work aims at deeper block ordering and register allocation.

C++GoPGO
0 likes · 16 min read
Profile-Guided Optimization (PGO) Principles and Practice in Go and C++
21CTO
21CTO
Oct 15, 2023 · Backend Development

Rust vs Go for Backend Development: Which Language Wins?

This article compares Rust and Go across performance, language features, concurrency, memory safety, ecosystem, learning curve, and real‑world use cases to help backend developers choose the most suitable language for their projects.

GoPerformanceRust
0 likes · 19 min read
Rust vs Go for Backend Development: Which Language Wins?
21CTO
21CTO
Oct 12, 2023 · Databases

Why Dragonfly Claims 25× Faster Than Redis – Real Benchmarks Explained

This article introduces Dragonfly, an open‑source in‑memory database compatible with Redis and Memcached APIs, explains its architectural innovations, presents benchmark code comparing it with Redis, and discusses real‑world performance results and future development plans.

DragonflyGoIn-Memory Database
0 likes · 11 min read
Why Dragonfly Claims 25× Faster Than Redis – Real Benchmarks Explained
Didi Tech
Didi Tech
Oct 10, 2023 · Backend Development

Investigation of 300‑Second Redis Timeout Issues in a Go Service

The article details how a Go service’s 300‑second Redis call timeout was traced to a gateway’s full‑NAT session‑table loss, and explains how targeted retries, proper timeout settings, and rate‑limiting can prevent similar cascading failures in distributed systems.

GoRedisRetry
0 likes · 9 min read
Investigation of 300‑Second Redis Timeout Issues in a Go Service
JD Retail Technology
JD Retail Technology
Sep 22, 2023 · Fundamentals

Master Go Basics: From Variables to Concurrency in One Guide

This article provides a comprehensive, beginner‑friendly walkthrough of Go language fundamentals, covering variable and constant declarations, zero values, functions with multiple returns and variadic parameters, struct‑based OOP, non‑intrusive interfaces, slices, maps, goroutines, channels, and the simple error‑handling model with defer, panic, and recover.

Gobasicsconcurrency
0 likes · 24 min read
Master Go Basics: From Variables to Concurrency in One Guide
DeWu Technology
DeWu Technology
Sep 15, 2023 · Backend Development

An Introduction to Generics in Go

Go introduced generics in version 1.18, allowing developers to write reusable, type‑safe code by defining type parameters and constraints in square brackets, instantiating them with concrete type arguments, and using generic functions, types, and collections such as stacks and sets to improve readability, safety, and maintainability.

Example CodeGogenerics
0 likes · 13 min read
An Introduction to Generics in Go
Bilibili Tech
Bilibili Tech
Sep 8, 2023 · Backend Development

Investigation of Goroutine Leak in Go

The article details how a sudden surge in goroutine and heap usage was traced to repeatedly creating gRPC clients instead of reusing a singleton, leading to blocked goroutines and TCP connections, and explains using pprof, stack traces, and tools like goleak to detect and prevent such leaks.

GoGo ProgrammingMemory Leak
0 likes · 13 min read
Investigation of Goroutine Leak in Go
37 Interactive Technology Team
37 Interactive Technology Team
Sep 7, 2023 · Cloud Native

Design and Implementation of the kjob Asynchronous Task Scheduling Platform on Kubernetes

The 37Game team built the cloud‑native kjob platform to replace VM‑based schedulers, providing a unified, highly available Kubernetes solution that manages both CronJob‑style scheduled tasks and long‑running Deployments through a backend‑agent architecture, offering CRUD operations, rich configuration, real‑time monitoring, alerting, and seamless migration.

Asynchronous JobsCloud-nativeGo
0 likes · 15 min read
Design and Implementation of the kjob Asynchronous Task Scheduling Platform on Kubernetes
Architect
Architect
Sep 4, 2023 · Information Security

Design and Implementation of a Unified Permission Management Service (MPS)

This article details the design and development of a unified permission management service (MPS) that consolidates RBAC, ACL, and DAC models to solve fragmented enterprise permission issues, covering requirement analysis, technical selection, functional modules, deployment, and performance outcomes.

ACLAccess ControlDAC
0 likes · 16 min read
Design and Implementation of a Unified Permission Management Service (MPS)