Entity Relations¶
Relations let you express dependencies and structural relationships between entities. They power dependency graphs — useful for blast-radius analysis ("if this DB goes down, which APIs are affected?") and topology views.
Relation types¶
| Type | Meaning |
|---|---|
depends_on |
Source entity depends on the target to function |
parent_of |
Source is a logical parent or container of the target |
calls |
Source calls / invokes the target (RPC, HTTP, queue) |
related_to |
Generic association with no directional implication |
Creating relations¶
Listing relations¶
Removing a relation¶
Example: mapping a typical backend stack¶
payments-api ──depends_on──► postgres-primary
payments-api ──depends_on──► redis-cache
payments-api ──calls──────► notification-service
payments-api ──calls──────► fraud-service
notification-service ──depends_on──► sendgrid (third-party)
With this graph in place, when postgres-primary goes down you can immediately see that payments-api is in the blast radius.