Skip to main content

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.

Full lesson walkthrough in the selected color theme.

Starting Point​

Only the container and five databases are visible. Their clients and relationships exist in the model but are not yet shown here.

Loading image...
The diagram starts in the exact state produced by the previous lesson

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.

Loading image...
The order processor can be added directly from the database dependency list

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.

Loading image...
Separate relationships preserve the distinction between reading and writing data

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.

Loading image...
Backend and the authentication service are added with their dependencies

Catalog and Notifications​

CatalogueDB brings back the online catalog and batch worker. Their data-access modes differ and remain recorded in the relationship properties.

Loading image...
Regular and batch interactions remain separate relationships

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.

Loading image...
Two notification services appear with relationships directed toward the database

Finally, add the notification-settings administration service, which uses NotificationSettingsDB.

Loading image...
The administration service completes PostgreSQL's external context

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.

Loading image...
Five databases, eight clients, and nine relationships share one diagram

Timeline​

  • 00:00 — Initial PostgreSQL structure
  • 00:12 — Adding through dependencies
  • 00:21 — Orders database
  • 00:26 — Separate read and write relationships
  • 00:38 — Web application database
  • 00:42 — WebDB clients
  • 00:50 — Catalog database
  • 00:54 — CatalogueDB clients
  • 01:02 — Notification communications database
  • 01:06 — Notification services
  • 01:15 — Settings database
  • 01:22 — Final client
  • 01:25 — Complete diagram overview

Previous lesson: PostgreSQL C3 Structure.

Next lesson: PostgreSQL C3 Relationships.