Video in progress
Why do you need a service catalog (for example, Backstage), and what information about each service must it have?
When the number of services goes past 30–50, questions like "who owns this service, where are its logs, who does it call" eat incident time. A catalog gathers this information in one place from metadata files that live next to the code. The mandatory minimum: the owner and on-call, lifecycle stage, API contracts, dependencies, and links to the dashboard and runbook.
📖 Answer
An alert came in at night: ledger-sync is failing. Whose service is it? Which channel? Is there a runbook? The table in the wiki was last updated 8 months ago. Those minutes add to the incident recovery time.
The catalog entry lives in the service's repo and is reviewed together with the code:
# catalog-info.yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: ledger-sync
annotations:
pagerduty.com/service-id: P7XK2
tags: [java, kafka]
spec:
type: service
lifecycle: production
owner: team-payments
system: payments
providesApis: [ledger-sync-api]
consumesApis: [accounts-api]
dependsOn: [resource:ledger-db]
The mandatory minimum (if anything is missing, CI goes red):
owner: a team, not a person. People leave;- on-call and escalation;
lifecycle: experimental, production, deprecated. New code that calls a deprecated service stands out in review;- APIs (OpenAPI, AsyncAPI): opened directly from the catalog;
- dependencies: who it calls, which DBs and topics;
- links: dashboard, log query, runbook, SLO.
Dependencies written by hand go stale. So I compare them with the service graph taken from tracing: a dependency that is in a trace but not in the catalog is a signal.
If the catalog stays only an "information page", nobody updates it. It has to be tied into the workflow: when a new service is created from the template the entry appears automatically, alerts take the owner from the catalog, and security scanners route findings to the owner. Then keeping the entry correct is in every team's own interest.
In an interview, "we'll install Backstage" isn't enough of an answer. The main point is that ownership and metadata live next to the code, and alerts, templates and scanners read that data.
Sign up to mark studied questions and save your progress.