Skip to main content

PostgreSQL C3 Relationships

PostgreSQL C3 already contains eight application clients and five databases. Restore nine dependencies: combined read/write access, separate writes and reads, and a batch load.

Full lesson walkthrough in the selected color theme.

Starting Diagram​

All thirteen objects are in place, but their dependencies are hidden. The catalog restores existing relationships without creating duplicates.

Loading image...
Eight clients and five databases are ready for their dependencies

Relationship Catalog​

Select Add: Relationship. Each dependency name describes a stable interaction mode, while the specific operation remains in its description.

Loading image...
Relationships are selected by their model-element identifiers

Read and Write​

Begin with the four dependencies named Reads and writes data: one each for the online catalog, authentication service, Backend, and notification administration service.

Loading image...
The combined mode is used where separating operations would not improve analysis

Write Data​

Add the order processor's write to OrdersDB and the notification orchestrator's write to CommunicationDB. Both arrows run from application to data store.

Loading image...
Services know where to store data, while databases do not know their clients

Read Data​

Select the separate order read and the reporting service's communications read. Order processor and OrdersDB now have two distinct relationships: read and write.

Loading image...
Separate relationships preserve an important distinction between access modes

Batch Load​

The final dependency connects Inventory ETL worker to CatalogueDB. Batch loading has a different execution and operational profile from ordinary writes, so it receives its own name.

Loading image...
The ninth relationship represents a distinct operational mode

Add the Relationships​

Select Add. SysCraft draws nine dependencies from eight application components to five databases.

Loading image...
Every database remains the destination of its architectural dependencies

Result​

PostgreSQL C3 is complete: thirteen objects and nine precise relationships. An arrow represents a client's knowledge of a data store, not the direction in which returned data travels. Reads and writes are separated only when useful.

Loading image...
The diagram contains thirteen objects and nine verified relationships

Timeline​

  • 00:00 — PostgreSQL C3 without relationships
  • 00:08 — Relationship catalog
  • 00:19 — Read and write
  • 00:42 — Write data
  • 00:58 — Read data
  • 01:14 — Batch load
  • 01:26 — Adding relationships
  • 01:30 — Complete topology
  • 01:34 — Overview
  • 01:39 — Result

Previous lesson: PostgreSQL C3 Clients and Relationships.

Next lesson: Your First Component Interface.