Prompt
I'm building a Backstage alternative for our platform team, what architecture makes sense?
Latest observation
A good Backstage alternative usually ends up being a developer portal platform, not just a single app. The architecture that makes sense is one that separates:
- A thin, opinionated front end
- A metadata and policy layer
- Pluggable integrations
- A workflow/action engine
- A scalable search/indexing layer
If you try to make it a monolith with direct integrations everywhere, it becomes hard to maintain quickly. If you make it too generic, it becomes unusable. The sweet spot is a modular, domain-driven architecture.
Recommended high-level architecture
1) Frontend portal
A web app that serves as the developer UX:
- service catalog
- ownership and team pages
- docs
- scorecards
- templates / scaffolding
- incident / on-call views
- deployment status
- environment and runtime links
- search
Implementation options
- SPA/SSR app in React/Next.js
- design system + plugin framework
- route-based feature modules
- embedded “cards” and “pages” from plugins
Keep the frontend as a consumer of APIs, not as the place where business logic lives.
2) Core platform backend
This is the heart of the system. It should own:
- identity and authorization
- catalog data model
- plugin registry
- workflow orchestration
- policy enforcement
- audit logging
- notifications/events
- scoring and maturity metrics
Think of it as a platform control plane.
A practical split is:
a) Catalog service
Stores normalized platform entities:
- services
- APIs
- libraries
- teams
- environments
- clusters
- templates
- docs
- ownership relationships
- dependencies
- incidents
- CI/CD metadata
This should be the source of truth for portal-visible metadata, even if the raw data comes from Git, CI, cloud, or ticketing systems.
b) Integration service
Connects to external systems:
- GitHub/GitLab
- Kubernetes
- Terraform/Cloud
- Datadog/New Relic
- PagerDuty/Opsgenie
- Jira/Linear
- CI/CD systems
- artifact registries
- SSO/IdP
Use ingestion jobs, webhooks, and polling. Normalize everything into the catalog or event store.
c) Workflow service
Handles actions like:
- create a new service
- bootstrap a repo
- provision infrastructure
- request access
- register an API
- update ownership
- run policy checks
This can be:
- Temporal
- Argo Workflows
- Step Functions
- custom job runner
This layer prevents the portal from becoming just a UI over scripts.
d) Policy/scorecard service
Evaluates rules such as:
- service must have an owner
- service must have SLOs
- prod workloads need alerts
- public APIs need docs
- critical services need runbooks
- dependencies must have security scans
This is where your “platform standards” live.
3) Event-driven backbone
Use events to decouple everything.
Examples:
ServiceRegisteredRepoConnectedOwnerChangedDeploymentSucceededAlertTriggeredPolicyViolationDetectedTemplateProvisioned
This lets:
- integrations update the catalog asynchronously
- search index refresh independently
- scorecards recompute from events
- notifications trigger from changes
- audit logs stay complete
A message bus like Kafka, NATS, SQS/SNS, or RabbitMQ works well depending on your scale.
4) Search/indexing layer
Portal UX depends heavily on search.
Use:
- OpenSearch/Elasticsearch
- or Postgres full-text for smaller scale
Index:
- services
- APIs
- docs
- owners
- tech stack
- tags
- ownership
- labels
- operational status
Search should be fast and tolerant of stale data. Don’t query every integration live from the UI.
5) Plugin framework
If you want to compete with Backstage, plugins are essential.
A plugin should be able to provide:
- UI cards/widgets
- pages/routes
- backend data providers
- actions/workflows
- permissions
- schema/config
But keep a strong contract:
- plugin APIs are versioned
- plugins access data through platform APIs
- plugins don’t directly talk to each other or the DB
This avoids the “everyone wrote arbitrary integrations in the frontend” problem.
Suggested logical architecture diagram
[ Browser ]
|
[ Portal Frontend ]
|
[ API Gateway / BFF ]
|
+------------------------------+
| Core Platform Services |
| - Catalog |
| - Identity/AuthZ |
| - Workflow |
| - Policy/Scorecards |
| - Notifications |
| - Plugin Registry |
+------------------------------+
| | |
v v v
[ Event Bus ] [ Search ] [ DBs ]
|
+------------------------------------+
| Integration Workers / Connectors |
| GitHub, GitLab, PagerDuty, etc. |
+------------------------------------+
Data model: what to normalize
A Backstage alternative succeeds when it has a strong entity model.
At minimum, define entities like:
- Component: a deployable service/app/library
- API: contract or endpoint surface
- System: a logical grouping of components
- Domain: business area
- Team: owners and collaborators
- Resource: cloud/db/queue/etc.
- Template: scaffolding definition
- Policy: compliance rule
- Scorecard: maturity/health metric
- Relationship: owns, dependsOn, provides, consumes, deployedTo
Store them as typed records with a flexible metadata bag.
A practical pattern is:
- structured core fields
- extensible JSON metadata
- relationships as first-class edges in a graph model
If your dependency and ownership graph becomes important, consider a graph database or graph-like schema on top of Postgres. You do not need a graph DB on day one.
What to build first
If you’re starting from scratch, do this in phases.
Phase 1: Portal MVP
Build:
- login/SSO
- service catalog
- team pages
- ownership graph
- search
- basic metadata ingestion from GitHub and Kubernetes
This is enough to make the portal useful.
Phase 2: Actions and workflows
Add:
- scaffolding
- “create service” workflows
- access requests
- docs templates
- scorecards
- policy checks
This is where the platform starts becoming operationally valuable.
Phase 3: Plugin ecosystem
Add:
- plugin SDK
- route/page composition
- standardized data contracts
- plugin permissions
- marketplace/registry
Phase 4: Governance and scale
Add:
- policy engine
- event streaming
- audit trails
- advanced analytics
- federated data ownership
- multi-tenant support if needed
Technology choices that usually make sense
Frontend
- React + Next.js
- TypeScript
- component library/design system
- route-based plugin composition
Backend
- TypeScript/Node if you want ecosystem velocity
- Go if you want operational simplicity and performance
- Python only if your team strongly prefers it, but it’s less ideal as a long-term portal control plane
APIs
- REST for simple integration
- GraphQL if the UI needs flexible entity composition
- gRPC internally if you have many services
A common pattern:
- GraphQL or BFF for UI
- REST/gRPC internally between services
Persistence
- Postgres for core system-of-record
- Redis for caching/locks/job coordination
- OpenSearch for search
- object storage for docs/artifacts
- optional graph DB later if relationships become complex
Eventing
- Kafka if you expect high throughput and many consumers
- NATS/SQS if you want simpler operational overhead
Workflows
- Temporal is a strong choice for platform automation
Key design principles
1) Separate source of truth from presentation
The portal should not “own” all data. It should aggregate and normalize data from source systems.
2) Prefer event-driven ingestion
Use webhooks/events over synchronous live calls in the UI.
3) Make ownership explicit
Most portal usefulness comes from knowing:
- who owns what
- what depends on what
- what is unhealthy
4) Keep plugins constrained
Plugins should extend the platform, not bypass it.
5) Model workflows, not scripts
If your portal launches shell scripts or ad hoc automation, it will be brittle.
6) Design for stale-but-useful data
A portal can tolerate data being minutes old; it cannot tolerate timeouts and flaky live dependencies.
Common mistakes to avoid
- building a giant monolith UI with hardcoded integrations
- letting every team add bespoke metadata fields without governance
- querying external systems live on every page load
- no strong entity model
- no workflow engine
- no search index
- no permission model
- plugins with unrestricted DB access
- trying to support every use case before MVP
A practical “best fit” architecture
If I had to recommend one architecture for most platform teams, it would be:
- Next.js frontend
- BFF/API gateway
- Postgres-backed catalog service
- Temporal for workflows
- OpenSearch for search
- event bus for integrations
- connector workers for external systems
- policy/scorecard engine
- plugin SDK with strict contracts
That gives you:
- fast delivery
- strong UX
- extensibility
- operational scalability
- a path to become a real platform product
If you want, I can also provide one of these next:
- a reference architecture diagram
- a minimal MVP architecture
- a domain model/schema for the catalog
- a plugin framework design
- a make-vs-buy comparison with Backstage