Skip to main content

Infrastructure on C2

In this lesson, add four technical containers: Hazelcast, Redis, PostgreSQL, and RabbitMQ. All four belong to the separate Infrastructure domain.

Add four technical containers to the infrastructure domain.

Starting C2 Diagram​

The diagram already contains the external context, Frontend, and the three business subsystems created in previous lessons.

Loading image...
The external context and four internal containers are already present

Hazelcast​

Select New: Container. Enter the name Hazelcast and describe it as a real-time data platform for synchronizing state between nodes, distributed locking, and related responsibilities.

Loading image...
The technical container is created through the standard C2 form
Loading image...
The technical container belongs to the Infrastructure domain
Loading image...
Hazelcast is stored as a container of the E-Commerce system

Keyboard Shortcuts​

Create the second container with the keyboard. Press A, wait for the shortcut hints in the left panel, and then press 3.

Loading image...
The number 3 opens the new-container form

For Redis, select the DBMS / Database type. A technical type affects both the element's diagram shape and its additional properties.

Loading image...
The database type identifies the container's purpose and shape

If the wrong type is selected, change it later in the properties panel. The same panel contains the type-specific properties, whose set can be configured by an administrator in the landscape settings.

Loading image...
The properties panel shows the technical type and its associated fields

From the System Structure​

Create the remaining containers from the selected system's Structure tab. The parent system is already filled in when this entry point is used.

Hold Ctrl or ⌘ to display an add button beside the domain field. When the list is still contextual, SysCraft first asks you to review all existing domains.

Loading image...
Holding Ctrl reveals the button for adding a domain
Loading image...
SysCraft first suggests checking the complete list of existing domains

By default, the list contains the diagram domain and the parent element's domain. Select Show All to view the remaining landscape domains.

Loading image...
The initial list contains domains associated with the diagram and system
Loading image...
After selecting Show All, any landscape domain can be chosen

If the required domain is absent from the complete list, hold Ctrl or ⌘ again and select the create-domain button. The domain creation form opens.

Loading image...
A domain can be added without leaving the container workflow

Choose the database type for PostgreSQL. Finally, add RabbitMQ with the Message broker / Queue type in the same infrastructure domain.

Loading image...
Its responsibility and messaging protocol are recorded in the description

Finally, assign icons to the main platforms. Select an element and open its properties. Under Visualization, find Element Icon and choose an appropriate icon. It appears on the selected element immediately.

Loading image...
The icon is selected under Visualization in the element properties panel

Icons make the diagram easier to understand at a glance. The C2 diagram now contains sixteen elements; the next lesson adds their relationships.

Loading image...
Icons distinguish the user application, data stores, and message broker

Chapters​

  • 00:00 — infrastructure on C2;
  • 00:07 — first creation method;
  • 00:18 — keyboard shortcuts;
  • 00:40 — element properties;
  • 00:51 — third creation method;
  • 01:01 — new domain;
  • 01:23 — checking domains again;
  • 01:39 — message broker;
  • 01:52 — platform icons;
  • 02:15 — completed infrastructure.

Previous lesson: Payments, Orders, and Notifications on C2.

Next lesson: Relationships on C2.