Infrastructure APIs
Crossplane Compositions / Terraform modules behind a simple claim ("give me a Postgres, size M"): hiding 200 lines of cloud config behind 10 lines of intent. API design applied to infra.
The mental model
Every developer who has ever filed "please give me a Postgres" and waited three days has met the real problem: infrastructure is a service with no API. You can request it, but only through a human. An infrastructure API replaces that human with a contract — the developer declares intent ("I want a Postgres, size medium, in prod") and a machine turns that intent into the two hundred lines of cloud configuration nobody wants to write twice.
The analogy that holds is the restaurant menu versus the recipe. A menu says "medium steak, medium-rare." The kitchen owns the recipe — the cut, the temperature, the resting time, the plating. The diner never sees the recipe and never needs to, but the kitchen can change suppliers or technique without reprinting the menu. An infrastructure API is that menu: the developer orders from a tiny, stable vocabulary, and the platform team owns the recipe underneath — VPC placement, encryption, backups, IAM, cost tags — and changes it without breaking a single order.
The WHY is that this is API design, not YAML plumbing, and that is the reframe senior interviews reward. The hard parts of an infrastructure API are the hard parts of any API: what belongs in the interface versus the implementation, how you version it so 30 teams do not break when you change it, how you deprecate a field, and where the abstraction is allowed to leak. Tools like Crossplane and Terraform modules are just the transport; the discipline is deciding what a developer should say and what they should never have to know.
- 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