Nullbody Notes
Author

Nullbody Notes

Go backend development, learning open-source project source code together, focusing on simplicity and practicality.

60
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Nullbody Notes

60 recent articles
Nullbody Notes
Nullbody Notes
Mar 3, 2024 · Backend Development

Understanding Go’s Context Package: Essential Insights for Interviews

The article walks through Go’s context package, explaining how Context objects enable cancellation and timeout control in concurrent workflows, detailing the implementations of emptyCtx, cancelCtx, timerCtx, and valueCtx, and providing concrete code examples and internal mechanics.

ConcurrencyGocancellation
0 likes · 19 min read
Understanding Go’s Context Package: Essential Insights for Interviews
Nullbody Notes
Nullbody Notes
Feb 29, 2024 · Backend Development

Implementing Parallel Computation in Go with a Custom MapReduce Framework

The article explains why parallel RPC calls are needed for assembling complex objects, introduces a Go‑based MapReduce framework, walks through concrete code examples for product detail retrieval and UID cleaning, and details the internal architecture—including generate, mapper, reducer, and cancellation mechanisms—while providing full source snippets and execution flow.

ChannelConcurrencyGo
0 likes · 10 min read
Implementing Parallel Computation in Go with a Custom MapReduce Framework
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.

ConcurrencyGoGoroutine
0 likes · 5 min read
A Minimal 70-Line Go Coroutine Pool: Simple and Elegant
Nullbody Notes
Nullbody Notes
Jan 30, 2024 · Backend Development

Implementing TCC Distributed Transactions for Redis in Go

This article explains how to build a TCC‑style distributed transaction layer for Redis using Go, detailing the two‑phase commit workflow, handling of prepare, commit, and rollback phases, the associated consistency challenges, and providing full code examples.

Backend DevelopmentDistributed TransactionRedis
0 likes · 13 min read
Implementing TCC Distributed Transactions for Redis in Go
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.

Backend DevelopmentCode ExampleConsistent Hash
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.

BackendConcurrencyGo
0 likes · 10 min read
Building a Redis Connection Pool in Go: Design and Implementation
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
Nullbody Notes
Nullbody Notes
Jan 15, 2024 · Backend Development

Build Your Own Redis Pipeline Client in Go

This article walks through implementing a Redis pipeline client in Go, explaining how to reuse a single TCP socket for multiple requests, preserve send‑receive order, and handle sending, receiving, heartbeats, and reconnection with a concise 200‑line codebase.

ClientNetwork ProgrammingPipeline
0 likes · 9 min read
Build Your Own Redis Pipeline Client in Go
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