java

14 posts.

2 min

Resources

Every link the series leans on, grouped by the part that uses it.

  • java
  • protocol
Two servers
8 min

Two servers

Replication. A second instance that follows the first.

  • java
  • replication
Surviving a restart
10 min

Surviving a restart

An RDB reader and writer, plus SAVE and BGSAVE.

  • java
  • persistence
The commands that make it usable
12 min

The commands that make it usable

CONFIG GET, INFO, DBSIZE, FLUSHALL, command line options, the TTL family, and the rest of the string API.

  • java
  • introspection
Four more types
14 min

Four more types

Hashes, sets, sorted sets, and SCAN.

  • java
  • data-structures
Atomic or wrong
14 min

Atomic or wrong

EXISTS, DEL, TYPE, KEYS, the INCR family, and lists.

  • java
  • concurrency
One read is not one request
10 min

One read is not one request

Framing that splits a byte stream into requests, then a server that handles many clients at once.

  • java
  • tcp
TCP before Redis
15 min

TCP before Redis

A server that listens on port 6379, accepts clients, and echoes back whatever they send.

  • java
  • sockets
Getting set up
12 min

Getting set up

A Maven project that compiles, runs, and is committed to git.

  • java
  • maven