Welcome and setup

Before any code: what we are building, in plain English

Welcome! Before we open an editor, a quick picture. A network server is just two programs sharing a phone line. One side speaks, the other listens. Redis is one of those programs. By the end of this course you have written your own version of it, one short main.go file at a time. No frameworks, no magic, just pure standard-library Go.

The whole network in one picture

A client sends bytes. A server reads bytes and replies with bytes. Everything else is built on top.

Quiz: Quiz

Loading practice…

The reference repo is github.com/learnwithparam/build-your-own-redis-go. The Python sibling course is also available if you want to compare the two languages on the same shape.

Ten steps end to end

Each step adds one Go idiom plus one Redis concept.
terminal
bash
git clone https://github.com/learnwithparam/build-your-own-redis-go.git
cd build-your-own-redis-go
make 01-tcp-echo

Clone and run the first step.

You should see 'echo server listening on 127.0.0.1:6380'. In another terminal, run nc localhost 6380 and type. Bytes echo back.

Quiz: Quiz

Loading practice…

Validation checklist: Confirm your setup before step 2

Loading practice…