Liking cljdoc? Tell your friends :D

2026-11-30 — A follower is a node

A change of words, before the gateway's first release, while nothing public says the old ones.

What attaches to a gateway was a follower, attached with :follow, in follower.clj. It is a node now, attached with :attach, in node.clj. The gateway keeps its name.

  • Why the gateway's stayed. Clients come through it, and it is the word people have for one address in front of many.
  • Why the other went. Elsewhere a follower is a replica that takes its state from a leader and may be promoted to one. Here it is the reverse: the node is the authority on its sessions, mints its own handles and keeps its own endpoint, and the gateway holds only what nodes report. Nothing is followed. A client never saw the word either: the node argument, (__r.gw/nodes) and every refusal said node, and the verb in every sentence was "attach". Two words for one thing, by who was reading, are one now.
  • What node covers. The gateway lists itself in the fleet, so a node is whatever has a name there and can hold a session, the gateway included. Where the difference matters the text says "the gateway" or "an attached node".

What changed with it: the role is :node where it was :follower, the option :attach where it was :follow, the namespace and its tests node and node-test, the dev task bb dev:node, and the line an instance prints when it starts, which says it is a node of the gateway it names. The wire did not change: its paths said attach already, and no message named the role.

The entries before this one say follower and :follow, and are left as written. §15 says when the word changed.

Shown

The suite, after the change: 299 tests and 1,194 assertions, without a failure. The counts are those of the entry before this, the tests being the same under other names.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close