Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Data Systems · Data on one machine · about 20 min to read

Play it as a journeyTutor comes with a plan

Encoding and Schema Change

Encoding and Schema Change
Encoding and Schema Change · Open board

A board in the Data Systems track’s first module, data on one machine. It draws the shape a program’s data takes the instant it leaves memory, and what has to be true about that shape for a stranger, or a future version of the same program, to read it back correctly.

Before you start. The previous lessons, Storage Engines and Storage Extras: richer indexes, warehouse schemas, column tricks, were about how a database lays bytes out on disk so it can find them again fast. This one is about what those bytes look like in the first place, and why a byte written five years ago still has to make sense to code written this afternoon.

Lesson 11 of 24 in Data Systems

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2001: a company that never finishes rebooting
  • The old service that has never heard of your new field
  • The numbered box, not the label
  • 2010: the number Twitter’s form could not hold
  • An old reader meets a new field, for real
  • The number JSON still can’t hold
  • Avro’s resolution, traced by hand
  • Where the bytes travel

Terms it explains: encoding, backward compatibility, forward compatibility, schema, field tag, Language-specific, Textual, Binary, schema-driven, varint, database, RPC, REST, idempotent, message broker, durable execution, backward compat, encoding / serialization, forward compat, idempotence, IDL, schema evolution, schema registry, writer's/reader's schema.

Review Data Systems