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

BackendConcurrencyGo
0 likes · 12 min read
Building a Simple In-Memory Redis Clone with Go
Nullbody Notes
Nullbody Notes
Dec 27, 2023 · Databases

Building a Custom Redis in Go: Implementing the RESP Network Protocol

This article walks through implementing the Redis Serialization Protocol (RESP) in Go as part of the EasyRedis project, detailing the protocol format, parsing logic, connection handling, and a demo showing how standard redis-cli commands are encoded and processed.

Network ProtocolRESPTCP
0 likes · 11 min read
Building a Custom Redis in Go: Implementing the RESP Network Protocol
Nullbody Notes
Nullbody Notes
Dec 26, 2023 · Backend Development

Building Your Own Redis in Go: TCP Server Implementation

This article walks through creating a lightweight Redis clone named EasyRedis in Go, covering a producer‑consumer logger, .conf file parsing with reflection, a TCP server with graceful shutdown, and demonstrates the running service via telnet, with all source code available on GitHub.

ConfigurationServerTCP
0 likes · 11 min read
Building Your Own Redis in Go: TCP Server Implementation
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.

GoProgrammingdeep copy
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.

Godatabasegorm
0 likes · 7 min read
Build Your Own Go ORM: Logger, Struct Mapping, CRUD, Transactions & Hooks
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.

BackendCacheConcurrency
0 likes · 9 min read
Build a High‑Performance Go Cache Library (EasyCache) from Scratch
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.

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

Goeasydbkv-store
0 likes · 6 min read
How to Build a Crash‑Safe KV Store Engine in Go