๐Ÿ”ง DevOps

Backstage

An open-source platform for building developer portals

Detailed Explanation

Backstage is a platform for building developer portals (Internal Developer Portal, IDP), released as open source by Spotify in 2020. As a CNCF incubating project, it has become a key tool for improving developer experience in microservice architectures.

As a core component of platform engineering, it centrally manages all services, APIs, libraries, and infrastructure resources in an organization through the Software Catalog. Developers can find the information they need in one place, which reduces cognitive load.

The Software Templates feature lets you quickly create new projects in a standardized way. TechDocs manages documentation together with code, and various plugins integrate CI/CD, monitoring, cost management, and more.

In practice, you add catalog-info.yaml to each service repository to register it automatically in Backstage. The plugin ecosystem is active, so it integrates with various tools such as Kubernetes, ArgoCD, PagerDuty, and Datadog.

Code Example

# catalog-info.yaml - ์„œ๋น„์Šค ๋“ฑ๋ก ํŒŒ์ผ
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: payment-service
  description: ๊ฒฐ์ œ ์ฒ˜๋ฆฌ ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค
  annotations:
    github.com/project-slug: myorg/payment-service
    backstage.io/techdocs-ref: dir:.
    argocd/app-name: payment-service-prod
  tags:
    - python
    - grpc
spec:
  type: service
  lifecycle: production
  owner: team-payments
  system: e-commerce-platform
  dependsOn:
    - component:user-service
    - resource:postgres-db
  providesApis:
    - payment-api

How It's Said in Practice

Senior: "Now that we have over 200 microservices, we can't keep track of which team is responsible for what. Let's adopt Backstage and start by organizing the service catalog."

Junior: "Does each team have to manage its own catalog-info.yaml?"

Senior: "Yes, so that it's version-controlled together with the code. We also plan to standardize new service creation with Software Templates."

Interviewer: "What is the role of an Internal Developer Portal in Platform Engineering?"

Candidate: "An IDP enables developer self-service. If a tool like Backstage provides infrastructure provisioning, service creation, and documentation access in one place, developer productivity increases and the ticket burden on the platform team decreases."

Take a mock interview on this topic โ†’ WIA SOOM AI Interview ยท Start for free

Reviewer: "In catalog-info.yaml, the owner is set to team-backend, but isn't the actual responsible team team-payments?"

Developer: "You're right. I missed the update after the team reorganization. I'll fix it and add dependsOn as well."

Cautions

Learn More