DevopsIntermediate

Platform Engineering: Building Modern Developer Platforms

DevHub Team
8 min read

TL;DR

Master Platform Engineering with this comprehensive guide covering internal developer platforms, self-service capabilities, and best practices for modern software delivery

Platform Engineering: Building Modern Developer Platforms

Executive Summary

Platform engineering is the discipline of building an internal developer platform (IDP): a self-service layer of templates, paved paths, and guardrails that lets product teams provision infrastructure, deploy services, and observe them without filing tickets or becoming cloud specialists. This guide covers what an IDP is made of — a service catalog and portal, golden-path templates, policy as code, scoped access, and platform-wide observability — and how to build one as a product, with internal customers, a roadmap, and adoption as the success metric. After reading it, you will be able to judge whether your organisation needs a platform team, and what that team should build first.

Why This Matters

The DevOps promise that every team would run its own infrastructure collided with reality: the cognitive load of modern cloud estates — Kubernetes, IAM, networking, observability, security policy — is more than a product team can carry alongside its actual product. The symptoms are consistent: every team hand-rolls the same Terraform and pipelines with slight, incompatible variations; onboarding a new service takes weeks of archaeology; security and compliance requirements are re-interpreted per team, badly. The cost is paid in slow delivery and in risk concentrated exactly where expertise is thinnest. A platform team attacks the problem at the root by making the right way the easy way: the standard service shape is a template, the compliant network is the default, and the unusual requirement is the thing that requires a conversation — not the other way round.

Core Concepts

The Platform as a Product

The defining shift is organisational, not technical. A platform team has customers (the developers), a product (the IDP), and a feedback loop (adoption, satisfaction, time-to-first-deploy). It builds the thinnest platform that removes real friction, in the open, with documentation and support treated as features. The failure mode this avoids is the ivory-tower platform: eighteen months of building, a launch nobody attends, and teams quietly continuing with their own scripts because the platform solves the problems its builders found interesting rather than the ones developers actually have. Start from the most common, most painful journey — usually "create a new service and get it to production" — and pave that path end to end before widening the scope.

The Service Catalog and Portal

The visible surface of most IDPs is a developer portal backed by a catalog of every service, its owner, its lifecycle, and its dependencies. Backstage, Spotify's open-source portal, popularised the model: catalog entries are YAML files stored with the code and harvested automatically.

# service-catalog.yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: web-service
  description: Web Service Template
  tags:
    - nodejs
    - typescript
spec:
  type: service
  lifecycle: production
  owner: team-a
  system: web-platform
  providesApis:
    - web-api
  consumesApis:
    - auth-api
  dependsOn:
    - resource:database
    - resource:cache

The catalog is not bureaucracy; it is the answer to questions that otherwise take a week of asking around — who owns this service, what does it depend on, where are its dashboards. Software templates attached to the catalog scaffold new services with the repository, pipeline, manifests, and observability already wired, which is where the platform's consistency actually comes from.

Golden Paths and Self-Service Provisioning

Behind the portal, golden paths are pre-assembled, supported routes through the infrastructure: a template that creates the repository, CI pipeline, Kubernetes manifests, database, and monitoring for a standard service shape, implemented with infrastructure as code (Terraform modules, Pulumi components, or Helm charts) and executed by automation the developer triggers themselves. The design principles matter more than the tooling. Make the paved path cover the common case completely, including the boring parts — DNS, certificates, log shipping, alert routing. Keep the escape hatch visible: a team with genuinely unusual needs can step off the path, accepting that they then own more of the stack. And never confuse self-service with abandonment: the platform team still owns the path's reliability, upgrades, and support.

Guardrails: Policy as Code

Self-service without guardrails is just distributed risk. Policy engines such as Open Policy Agent evaluate requests and workloads against the organisation's non-negotiables — approved registries, required resource limits, mandatory labels — and deny violations at admission time:

# policy.rego
package platform.policy

default allow = false

# Allow only approved base images
allow {
    input.request.kind == "Deployment"
    image := input.request.object.spec.template.spec.containers[_].image
    startswith(image, "approved-registry.com/")
}

# Enforce resource quotas
deny[msg] {
    input.request.kind == "Deployment"
    container := input.request.object.spec.template.spec.containers[_]
    not container.resources.limits.cpu
    msg := "CPU limits are required"
}

Access control complements admission policy: developers get broad rights inside their own namespaces and almost none outside them, expressed in the platform's native RBAC:

# rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: developer-role
  namespace: apps
rules:
- apiGroups: ["", "apps"]
  resources: ["deployments", "services"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]

---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: developer-binding
  namespace: apps
subjects:
- kind: Group
  name: developers
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: Role
  name: developer-role
  apiGroup: rbac.authorization.k8s.io

The posture to aim for: guardrails block the dangerous and the non-compliant, warn on the merely unusual, and stay silent on everything else. A policy that fires constantly on legitimate work will be routed around, and a routed-around platform is worse than none.

Observability of the Platform Itself

A platform is production software and is monitored like one: golden signals per platform service, a health view developers can check before blaming their own code, and error budgets for the paved paths. Prometheus scraping platform services is the usual mechanism:

# prometheus-config.yaml
global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: 'platform-services'
    kubernetes_sd_configs:
      - role: pod
    relabel_configs:
      - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
        action: keep
        regex: true
      - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
        action: replace
        target_label: __metrics_path__
        regex: (.+)

Measure the developer-facing outcomes too: time from template to first production deploy, percentage of services on the golden path, platform ticket volume and resolution time. Those numbers are the platform team's roadmap evidence.

Decision Framework

SituationRecommendation
Fewer than roughly a dozen engineersNo platform team; invest in shared modules, templates, and documentation instead
Many teams duplicating the same infrastructure workForm a platform team; pave the most common service journey first
Strong compliance requirementsPrioritise policy as code and catalog ownership data; auditors become platform consumers
Developers blocked on tickets for routine resourcesSelf-service provisioning for the top requested resources, with guardrails
Existing platform with low adoptionStop adding features; interview the teams not using it and fix the top friction
Choosing a portalBackstage if you will staff it as a product; a simpler catalog or the cloud console if you will not

Implementation Checklist

  • [ ] The platform team has named internal customers and a public roadmap driven by their friction
  • [ ] One golden path works end to end: new service from template to production, fully self-service
  • [ ] The catalog records every service with an owner, lifecycle, and dependencies
  • [ ] Templates include CI, manifests, observability, and alert routing — not just infrastructure
  • [ ] Policy as code enforces the short list of non-negotiables at admission time
  • [ ] Developer access is self-service inside team boundaries and restricted outside them
  • [ ] Platform services have SLOs, dashboards, and on-call like any production system
  • [ ] Adoption and time-to-first-deploy are measured and reviewed
  • [ ] An escape hatch off the golden path exists, is documented, and its cost is explicit
  • Trade-offs

    A platform is a long-term staffing commitment, not a project: it needs a product-minded team indefinitely, and an under-resourced platform decays into the worst outcome — a mandatory layer that is also broken. Abstraction has a price in both directions. Too little, and teams still drown in YAML; too much, and the platform becomes a proprietary cloud that only its builders understand, with developers helpless when they hit its edges. Standardisation also trades local optimality for global consistency: some teams will be slightly worse served by the golden path than by their hand-tuned setup, and that tension never fully resolves. Finally, portals like Backstage are platforms in themselves — powerful, and a real operational and customisation burden that small organisations routinely underestimate.

    When Not to Use

    Do not create a platform team for a small engineering organisation; below a certain scale the coordination cost of a platform exceeds the duplication it removes, and a shared repository of good modules plus conventions achieves most of the benefit. Do not build a bespoke portal when your actual problem is two missing templates — ship the templates. And do not mandate the platform before it is genuinely better than what teams have: forced adoption of an inferior platform produces shadow infrastructure, which is the original problem wearing a worse disguise. Earn adoption, then standardise.

    Conclusion

    Platform engineering succeeds when it is run as product development aimed at internal developers: pave the common path completely, guard the boundaries with policy as code, and measure adoption rather than output. Build the thinnest platform that removes real friction, starting with the journey from idea to production service. Everything else — portals, catalogs, templates — is in service of that one outcome.

    References

  • Internal Developer Platform
  • Platform Engineering
  • Backstage Documentation
  • OPA Documentation
  • Tekton Documentation
  • Kubernetes Documentation
  • Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.