Platform engineering
Platform engineering is the discipline of building an internal developer platform (IDP): a curated set of tools, services and automated workflows that lets product teams create, deploy and run software themselves, without filing tickets or becoming experts in Kubernetes, networking and security.
The key idea is to run the platform as a product. Its customers are internal developers. It has a roadmap, user research and success measures, and teams use it because it’s the easiest way to do the right thing, not because they’re forced to.
Diagram
Section titled “Diagram”- A team starts from the portal, picking a golden path such as "new Java API" or "scheduled job".
- The platform provisions what's needed through APIs, checking policy as code automatically.
- Databases, queues and other services are created with security, backups and monitoring already set up.
- The pipeline builds, tests and deploys to the runtime; logs, metrics and traces flow to observability from the start.
How it works
Section titled “How it works”- Golden paths, not golden cages. A golden path is a supported, opinionated way to do a common task, such as creating a new service, adding a database or exposing an API. Teams may leave the path, but then they own what they build.
- A developer portal as the front door. A software catalog showing every service, its owner, its documentation, its dependencies and its health. Backstage, a CNCF project originally built at Spotify, is a common foundation.
- Self-service through APIs. Infrastructure is requested declaratively and provisioned automatically, often with infrastructure as code and Kubernetes-style controllers under the hood.
- Policy as code. Security, cost and compliance rules are checked automatically on every request and deployment, instead of in review meetings.
- Thinnest viable platform. Start with the smallest set of capabilities that removes the biggest pain, which might be a wiki page and a template, and grow from real demand.
- Measure developer experience: lead time for changes, deployment frequency, change failure rate and time to restore (the DORA metrics), plus how long it takes a new team to ship its first service.
- Less cognitive load on product teams, who focus on business problems.
- Consistency by default: every service gets security, monitoring and backups without asking.
- Faster onboarding for new teams and engineers.
- A platform team costs money and needs product skills, not just infrastructure skills.
- Risk of building the wrong thing: a platform nobody wants, designed without user research.
- Can become a bottleneck if every new need waits on the platform backlog.
When to use it
Section titled “When to use it”- When several teams repeatedly solve the same infrastructure problems in different ways.
- When cognitive load, slow onboarding or inconsistent security is limiting delivery.
- After a cloud migration, to stop each team building its own pipelines and environments.
When to avoid it
Section titled “When to avoid it”A single small team doesn’t need a platform team. Shared templates and good documentation go a long way. Don’t build an IDP because it’s fashionable; build it because you can name the pain it removes.
Common pitfalls
Section titled “Common pitfalls”- Building a platform no one asked for, then mandating its use.
- Rebranding the operations team as “platform” without changing how it works.
- Too much abstraction, hiding things developers genuinely need to see and debug.
- No product manager and no measures of adoption or satisfaction.
Related patterns
Section titled “Related patterns”Further reading
Section titled “Further reading”- CNCF TAG App Delivery, Platforms white paper (opens in a new tab)
- Backstage (opens in a new tab), the open-source developer portal framework
- Matthew Skelton and Manuel Pais, Team Topologies (opens in a new tab) (IT Revolution, 2019)
- DORA, DORA’s software delivery metrics (opens in a new tab)
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.