ılane

ilane / Blog

Service Dependency Matrix: What It Is, How to Build

A service dependency matrix shows which components each business service relies on. Here's how to build one from real data and use it for changes, incidents and audits.

A service dependency matrix is a table that records which components each business service relies on, such as servers, databases, proxies, cloud resources and third-party APIs, and how. Read across a row to see what a service needs. Read down a column to see every service a component can take down. Teams use it for change reviews, incident triage and audits.

What is a service dependency matrix?

A service dependency matrix is a grid with business services on one side and the components they depend on on the other. Each filled cell marks a dependency.

The idea comes from systems engineering. The design structure matrix (also called a dependency structure matrix, N2 matrix or dependency map) is a simple, compact and visual representation of a system or project in the form of a square matrix. It is the equivalent of an adjacency matrix in graph theory (Wikipedia: Design structure matrix).

IT teams usually build it in one of two shapes:

  • Service-to-component matrix: business services as rows, technical components as columns. This is the one people mean when they ask for it in a change review or an audit.
  • Component-to-component matrix (square): every component on both axes. It’s useful for finding chains, for example API → cache → database, but it gets hard to read once you pass a few dozen components.

Service dependency matrix vs dependency graph: which do you need?

You need both, because they’re two views of the same data. The graph is for tracing. The matrix is for reviewing, filtering and signing off.

Dependency graph (map) Dependency matrix (table)
Best for Following a chain several hops deep Seeing every dependency of one service, or every service on one component
Used during Live incidents, architecture talks Change reviews, audits, business impact analysis
Scales to Hundreds of nodes, if you can zoom and filter Any size, if you sort and filter
Weakness Hard to attach to a ticket or approve Hides chains unless you add indirect dependencies

Don’t keep a diagram and a spreadsheet as two separate things. Keep one list of dependencies and generate both views from it, so they can never disagree.

What rows, columns and fields should the matrix include?

Store one row per dependency (an “edge list”), then turn it into a grid when someone needs one. A grid cell can only hold an X. An edge row can hold the context a reviewer actually needs.

Fields worth recording for each dependency:

  1. Business service: the thing a customer or employee would name, such as “Checkout” or “Payroll”.
  2. Component: the server, container, database, queue, cloud resource or SaaS API.
  3. Depends on: the next component down the chain.
  4. Type: runtime call, data store, network path, authentication, build or deploy.
  5. Strength: hard (the service stops) or soft (the service degrades).
  6. Fallback: replica, cache or manual workaround, if any.
  7. Evidence source: where the dependency was seen (connection data, proxy config, cloud API, interview).
  8. Last seen: when the evidence was last confirmed.
  9. Owner: one named person or team.
  10. Service criticality and users: carried over from the business service.

The last three fields are what make the matrix trustworthy. Without them, nobody can tell a current dependency from one somebody remembered in 2023.

Where does the dependency data come from: servers, proxies, cloud, Kubernetes or code repos?

Take dependencies from observed connection and configuration data, then use interviews only for what data can’t tell you: business purpose and criticality. Each source shows a different layer:

Source What it reveals What it misses
Server connections Which process talks to which host and port, including connections nobody documented Why the connection exists; links that only open rarely, such as monthly batch jobs
Reverse proxy routes Which public hostname reaches which upstream container or server Calls between back-end services
Cloud accounts Load balancers, managed databases, security groups, resource tags Anything on-prem or on a VPS
Kubernetes Services, ingress, workloads and the pods behind them Dependencies outside the cluster
Code repositories Which repo and commit a container runs; config that names downstream services Whether that config is actually live

Interviews still matter, but they’re a poor source for the dependencies themselves. People remember the architecture they designed, not the cron job someone added later.

This is the approach behind ilane’s service discovery. It draws a live map of what talks to what from data ilane already collects: server connections, proxy routes, your cloud, Kubernetes and code repos. Every source starts switched off until you turn it on. It traces websites through the proxy to the container and code that serve them, with traffic levels between services. On the servers and cloud side, the agent reports which repo and commit each container runs. Cloud connections are read-only.

How raw connection and configuration data becomes a service dependency matrix
How raw connection and configuration data becomes a service dependency matrix

How do you tie technical components to the business services they keep running?

Start from a short list of business services, give each one an owner and a criticality, then attach the components that serve each service’s entry point and follow the chain down.

This is the same step a business impact analysis asks for. NIST’s contingency planning guide says the BIA enables the ISCP Coordinator to characterize the system components, supported mission/business processes, and interdependencies, and that its purpose is to correlate the system with the critical mission/business processes and services provided (NIST SP 800-34 Rev. 1).

A practical order:

  1. Name the services people use. Name them the way users would, like “Customer portal” or “Payments API”, not by server names.
  2. Find each entry point. A hostname, a public endpoint or an internal app URL.
  3. Follow the observed edges down from proxy to container to database, and attach every component you reach.
  4. Mark shared components. A database used by three services belongs in three rows. That’s the column reviewers care most about.
  5. Set criticality and users per service, not per component. A component inherits the highest criticality of anything that depends on it.
Business services view in ilane showing Payments API in an outage and the customer portal that depends on it
A business service view: the Payments API is down, and the customer portal that depends on it is flagged too (sample data).

How do you use the matrix to assess the impact of a change or an outage?

For a change, read down the column of the component being changed and list every service above it. For an outage, go the other way: start from the services that are failing and look for the lowest component they share.

Before a change:

  1. Find every row where the component appears, directly or further down the chain.
  2. Collect the affected business services, with their criticality and user counts.
  3. Check whether each dependency is hard or soft, and whether a fallback exists.
  4. Notify the service owners and choose a window that suits the most critical service.
  5. Attach the list to the change ticket as your impact assessment.

Auditors look for this step. SOC 2 change management maps to Common Criteria CC8.1, which covers how changes are authorised, tested and approved (SOC 2 change management controls). NIST defines a security impact analysis as the analysis conducted by an organizational official to determine the extent to which a change to the information system has or may have affected the security posture of the system (NIST glossary).

Using the matrix to assess the impact of a planned change
Using the matrix to assess the impact of a planned change

During an outage: when several alerts fire at once, the matrix tells you which ones share a dependency. The component lowest in the chain that broke first is usually the cause. Everything above it is a symptom.

The matrix also has to include things you don’t run yourself. According to Uptime Institute, outages from IT and networking issues increased in 2024, totaling 23% of impactful outages, a trend that reflects the long-term move toward colocation providers, cloud, and other third-party services (Uptime Institute, 2025). Give cloud regions, DNS providers and SaaS APIs their own columns.

In ilane, problems that touch the same service are grouped into one incident. The one that started lowest and earliest is marked as the likely cause, and business impact is worked out from the service map using service criticality and who uses it. That grouping is rule-based and needs no AI. Changes are also risk-checked against the service map.

ilane incident view with three related problems grouped and the likely cause shown first
Three alerts grouped into one incident, with the likely cause shown first (sample data).

How do you keep the matrix from going stale?

Generate it from observed data instead of editing it by hand, and record when each dependency was last seen. A matrix filled in from interviews is out of date the first time someone deploys.

  • Track “last seen” on every edge. Flag edges with no evidence for 30 days and confirm whether they’re dead or just rare.
  • Treat new edges as questions. A connection that wasn’t there last week needs an owner and a business service.
  • Compare what’s observed with what’s declared. If a service owner says “we don’t use the old database” but connections still show traffic, the data wins until someone proves otherwise.
  • Review the business layer quarterly. Services, owners and criticality change more slowly than connections but still change.
  • Update on change, not on audit. Every change ticket that adds or removes a component should update the matrix in the same step.

What does a sample service dependency matrix look like?

Here is a service-to-component matrix for a fictional company. H means a hard dependency and S means soft.

Business service (criticality) nginx proxy payments-api container postgres (data-01) Redis cache Identity provider Card processor API
Customer portal (High) H H H S H —
Payments API (Critical) H H H — — H
Internal admin panel (Medium) H — H — H —
Nightly reports (Low) — — H — — —

Reading it:

  • Down the postgres column: all four services depend on it. A postgres upgrade needs every owner’s sign-off and a window that suits the Payments API.
  • Across the Customer portal row: it depends on the Payments API’s container, so a payments outage also shows up as a portal outage. Look there first when portal alerts fire.
  • The Redis column: soft for the portal, so losing it degrades performance but doesn’t stop the service.

Behind each cell sits an edge row with evidence source, last seen and owner. That’s what an auditor or change approver will ask to see.

Conclusion

A service dependency matrix only helps if people trust it. Store dependencies as a list of edges taken from real connection, proxy, cloud, Kubernetes and code-repo data. Map them to a short list of business services with owners and criticality, and generate both the matrix and the graph from that one list. Use it before every change and during every incident, and audit evidence will mostly take care of itself; the compliance and insights page shows how change and incident records feed the controls.

To see a live service map built from your own servers and cloud, book a demo.

Frequently asked questions

Is a service dependency matrix the same as a CMDB?

No. A CMDB is a database of configuration items and the relationships between them. A dependency matrix is one view of those relationships, arranged around business services. If your CMDB records relationships accurately, you can generate the matrix from it. Many smaller teams skip the full CMDB and keep only the dependency data they actually use.

Do SOC 2 or ISO 27001 require a service dependency matrix?

Neither framework requires a document by that name. Auditors do expect evidence that changes are assessed for impact and approved before release, and a dependency matrix attached to change tickets is a clear way to show that. It also supports business impact analysis for availability and continuity controls.

Should third-party SaaS and cloud services be in the matrix?

Yes. Identity providers, payment processors, DNS, email delivery and cloud regions can take a service down just as a server can. Give each one a column, mark whether the dependency is hard or soft, and note any fallback. When an outage starts outside your network, these columns are often the fastest route to the cause.

How many business services should a 50–1,000 person company map?

Map the services people would name when something breaks: customer-facing products, internal tools and core back-office systems. Start with the critical ones and add more as change reviews and incidents bring them up. A short, accurate list is more useful than a long one nobody maintains.

How often should the matrix be reviewed?

The technical dependencies should update all the time from observed data, with stale edges flagged automatically. The business layer (services, owners and criticality) needs a human review about once a quarter and after any major reorganisation or system migration. Every change ticket that adds or removes a component should also update the matrix.

All articles