Bitpath

Boss lesson · Unit 04

Evolve a live API

Add, rename and split on an API with 300 clients, with no flag day, then review a flawed design

12 exercisesabout 3 min

What you practise

  • Add a field, rename one, split a resource, move clients over without a flag day
  • Then review a design with five flaws

Try a question from this lesson

Pick one

This reply is served to 300 client apps you do not control. Shipping now wants every order to carry a status. Which change breaks none of them?

JSON
{
  "id": "41",
  "customer_name": "Ada Lovelace",
  "addr": "12 Mill Lane, Leeds",
  "total": 19.99
}

The idea

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Expand, migrate, contract

Every breaking change can be cut into three steps that each break nothing.

Expand: serve the new form beside the old. Migrate: announce a date, help clients move, watch who is left. Contract: remove the old form.

The alternative is a flag day, one moment when the server and every client must change together. You do not control when other people deploy.

expand    old + new        nobody breaks
migrate   clients move     nobody breaks
contract  new only         nobody is left

10 more exercises in the app

  • 2× true or false
  • 2× type the answer
  • 1× order the lines
  • 4× multiple choice
  • 1× match the pairs

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy