Skip to content

ADR-0234: One topology screen for every system, read as one neutral model ​

  • Status: accepted
  • Date: 2026-12-01
  • Deciders: Mahdi Amirabdollahi
  • Supersedes: ADR-0233

Context ​

An operator reads a cluster as a picture first. Artemis has one: Topology draws HA pairs on a purpose-built canvas, with a panel for the chosen node, a table that states the same facts, a keyboard model and live updates. ADR-0233 gave Kafka a plainer graph on the shared diagram part, on a page of its own, and RabbitMQ has only tables. Three systems offer three ways to find out what a cluster looks like and what is wrong with it, and only one is good.

The words for the Artemis picture are derived in the browser (nodeFacts.ts). A second and third derivation in the browser would put the same facts in three places, and the MCP tool that reads a cluster would be a fourth, free to disagree with the screen. The web app also cannot share them: a feature may not import another feature, so clusters cannot reach into kafka or rabbitmq.

Decision ​

  • One screen. Observe → Topology opens for an Artemis, a Kafka and a RabbitMQ cluster: a health strip in words, a diagram, a panel for the chosen node, a table that states the same facts, and what needs attention. The Kafka Cluster page and the RabbitMQ Nodes page are removed.
  • One neutral model, derived on the server. A platform port TopologyGraphSource, one bean per system, answers TopologyGraphView at GET /clusters/{id}/topology/graph, behind TopologyGraphService (cluster:read, a heavy-read permit, topic names withheld without destination:read). The diagram, the panel, the table and the MCP tool describe_topology read that one derivation. The contract is in the change's design.
  • One canvas. The Artemis canvas is generalised: group frames (an HA pair, a rack, the controller quorum, the cluster, outside endpoints), boxes with up to three load figures, edges with a tone and words, deterministic columns so a refresh never moves a box. The shared diagram part stays as it is, because plugins use it.
  • Load figures come from the SDK. Node measures are metric attributes on a node description (OpenBroker ADR-0041). A figure the system does not report is "Not reported", never zero; Kafka's load is computed from placement.
  • Honesty carries over from ADR-0233: the at-least floor for a capped read, the ZooKeeper and pre-4.0 notes, the 200-pair cap stated as omitted, the single batched read under a permit, and names withheld without destination:read.
  • Live. The Kafka and RabbitMQ scrapes publish the topology stream topic when the graph's signature changes, as Artemis does.
  • RabbitMQ external endpoints (federation upstreams, shovel sources and destinations) are drawn as outside nodes keyed by host and port with credentials removed; the redaction is tested.

Consequences ​

  • A fourth system adds one TopologyGraphSource and an adapter; the screen, the table, the panel and the tool come with it.
  • The Artemis words move from TypeScript to Java and are pinned by the same cases as Java tests.
  • The model is larger than any one system needs; a system fills what it has and states what it lacks.
  • No backward compatibility before the stable release: GET …/kafka/cluster, kafka_describe_cluster and the two pages are removed.

Alternatives considered ​

  • An adapter per system in the browser. Rejected: three derivations, the MCP tool free to disagree, and an import the boundaries forbid.
  • Keep Kafka on the shared diagram part and give it a panel. Rejected: two canvases that drift apart, and the shared part is plugin API, so it cannot change freely.
  • A force-directed or layered automatic layout (ELK) for every system. Rejected for this screen: it moves boxes when a live refresh arrives, which an operator watching an incident cannot accept. Columns are deterministic.

Apache-2.0. Apache Kafka, Apache ActiveMQ and Apache ActiveMQ Artemis are trademarks of the Apache Software Foundation. RabbitMQ is a trademark of its owner. Rahdar is an independent project, not produced by, endorsed by, or affiliated with the ASF or the owner of RabbitMQ.