Designing the platform API surface

What is a CRD, what is a CLI, what is a portal button; versioning abstractions, deprecating fields without breaking 30 teams. Leaky abstractions are the platform killer.

About 27 min read3-question knowledge check

The mental model

A wall socket is a brilliant API. The appliance declares an intent — "I need power, standard plug" — and knows nothing about substations, transformer ratios, or which cable runs behind the drywall. The utility can rewire the entire grid without visiting your kitchen, because the socket's contract held. Now imagine a country where every building wired appliances straight to the busbars: every appliance bespoke, every grid upgrade a nationwide appliance recall.

A platform API is the wall socket between developers and infrastructure. Developers declare intent — "a Postgres, size M, production" — and the platform owns the mechanism: instance types, subnets, backup windows, encryption. The socket is what lets the platform team swap RDS generations, move regions, or change CNIs without visiting thirty teams' repos.

Why this exists as a *discipline* and not just a habit: the moment a second team consumes your abstraction, it becomes a contract, and contracts are governed by Hyrum's Law — with enough users, every observable behavior of your system will be depended on by somebody, regardless of what you promised. The platform API surface is the set of promises you can never casually break. Design it too wide (exposing mechanism) and you can never change your internals; design it too narrow (hiding something teams legitimately need) and it leaks — teams hit the wall, tunnel around you, and the paved road forks. Platform engineering lives or dies on where this line is drawn and how it moves over time. A platform with a bad API isn't a worse platform; it is a future migration program with a portal in front of it.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision