PostgreSQL C3 Clients and Relationships
Continue from the previous lesson. PostgreSQL and its five databases are already on the diagram. Now traverse their dependencies, add eight external components, and reveal nine existing relationships automatically.
Starting Point
Only the container and five databases are visible. Their clients and relationships exist in the model but are not yet shown here.
Add Through Dependencies
Select a database and open Dependencies. The plus icon beside a client adds
that component and every existing relationship between it and the selected database.
OrdersDB reveals two relationships from the same client at once: one for reads and one for writes. A single pair of elements can therefore carry multiple, architecturally distinct dependencies.
Web Application Clients
WebDB has two clients: the application backend and the authentication service. Add both through the dependency list; their existing relationships appear automatically.
Catalog and Notifications
CatalogueDB brings back the online catalog and batch worker. Their data-access modes differ and remain recorded in the relationship properties.
CommunicationDB is used by the orchestrator and reporting service. Arrows point from the applications to the database: clients know the store they use, while the store does not know individual clients.
Finally, add the notification-settings administration service, which uses NotificationSettingsDB.
Result
The C3 now contains the container, five databases, and eight external components. All nine relationships were restored without the full catalog or duplicate objects: each path began at a database and followed the components that use it.
Timeline
00:00— Initial PostgreSQL structure00:12— Adding through dependencies00:21— Orders database00:26— Separate read and write relationships00:38— Web application database00:42— WebDB clients00:50— Catalog database00:54— CatalogueDB clients01:02— Notification communications database01:06— Notification services01:15— Settings database01:22— Final client01:25— Complete diagram overview
Previous lesson: PostgreSQL C3 Structure.
Next lesson: PostgreSQL C3 Relationships.