Kuestenlogik.Bowire.Protocol.Akka.Remote
1.4.0
Prefix Reserved
dotnet add package Kuestenlogik.Bowire.Protocol.Akka.Remote --version 1.4.0
NuGet\Install-Package Kuestenlogik.Bowire.Protocol.Akka.Remote -Version 1.4.0
<PackageReference Include="Kuestenlogik.Bowire.Protocol.Akka.Remote" Version="1.4.0" />
<PackageVersion Include="Kuestenlogik.Bowire.Protocol.Akka.Remote" Version="1.4.0" />
<PackageReference Include="Kuestenlogik.Bowire.Protocol.Akka.Remote" />
paket add Kuestenlogik.Bowire.Protocol.Akka.Remote --version 1.4.0
#r "nuget: Kuestenlogik.Bowire.Protocol.Akka.Remote, 1.4.0"
#:package Kuestenlogik.Bowire.Protocol.Akka.Remote@1.4.0
#addin nuget:?package=Kuestenlogik.Bowire.Protocol.Akka.Remote&version=1.4.0
#tool nuget:?package=Kuestenlogik.Bowire.Protocol.Akka.Remote&version=1.4.0
Kuestenlogik.Bowire.Protocol.Akka
Bowire protocol plugin for Akka.NET actor systems. Streams every message that lands in a tap-mailboxed actor's mailbox — plus the actor system's dead letters — into the Bowire workbench, so you can watch a live actor system the same way you watch gRPC streams or MQTT topics.
What it does
- Mailbox tap — a custom Akka.NET
MailboxType(BowireTapMailbox) wraps the standard unbounded queue and forwards every enqueue to a per-actor-system extension. Opt in globally (default-mailbox swap) or per actor (Props.WithMailbox(...)). - DeadLetters capture — the extension subscribes to the actor system's
EventStreamand republishes everyAkka.Event.DeadLetterthrough the same channel withIsDeadLetter = true, so undeliverable messages surface without any per-actor opt-in. IExtensionintegration —BowireAkkaExtensionowns the active subscriber list and the dead-letter bridge. When nobody is watching, each enqueue costs a single subscriber-count check; the message is only marshalled once at least one subscriber is attached.- Bowire streaming pane —
BowireAkkaProtocolexposes two server-streaming methods —Tap/MonitorMessagesyieldsTappedMessageenvelopes as JSON,Tap/Throughputmessages per second per actor — and one unary method,Tap/Mailboxes, that shows what is waiting in each tapped mailbox. - Actor tree —
Tree/Childrenlists the live hierarchy a page at a time; the workbench shows it as a tree that loads on expand and follows changes live. - Lifecycle —
Lifecycle/Eventsstreams actors starting, stopping, restarting and resuming, with the supervisor's directive and the exception behind it;Lifecycle/Restartslists which actors restarted how often. Both read Akka's own actor telemetry. - Log —
Log/Eventsstreams the actor system's own log events, filterable by level, source and actor path.
How it works
actor mailbox ─enqueue─▶ BowireTapMailbox ─▶ BowireAkkaExtension ─fan-out─▶ subscriber channels ─▶ Tap/MonitorMessages ─JSON─▶ Bowire UI
▲
EventStream DeadLetter ────────────────┘
BowireTapMailbox wraps Akka's UnboundedMessageQueue; the dequeue path is untouched, so the tap never changes delivery order or semantics. On each enqueue it hands a TappedMessage to the process-wide BowireAkkaExtension, which fans out to every subscribed Bowire client over a bounded, drop-oldest channel — a slow viewer can never stall the actor system. Dead letters reach the same fan-out through an EventStream subscription.
Requirements
- .NET 10
- Akka.NET ≥ 1.5
- A Bowire-enabled host —
Kuestenlogik.Bowire≥ 2.12.0, < 3.0 (see the compatibility matrix)
Install
dotnet add package Kuestenlogik.Bowire.Protocol.Akka
Use
1. Register the actor system in DI
using Akka.Actor;
using Microsoft.Extensions.DependencyInjection;
var system = ActorSystem.Create("MyApp", hocon);
builder.Services.AddSingleton(system);
builder.Services.AddBowire(); // discovers this plugin automatically
2. Opt actors into the tap mailbox
Per actor — surgical, only the actors you name are tapped:
akka.actor.bowire-tap = {
mailbox-type = "Kuestenlogik.Bowire.Protocol.Akka.BowireTapMailbox, Kuestenlogik.Bowire.Protocol.Akka"
}
var orders = system.ActorOf(
Props.Create<OrdersActor>().WithMailbox("akka.actor.bowire-tap"),
"orders");
Globally — every actor created afterwards is tapped:
akka.actor.default-mailbox.mailbox-type = "Kuestenlogik.Bowire.Protocol.Akka.BowireTapMailbox, Kuestenlogik.Bowire.Protocol.Akka"
Both modes capture dead letters, and they can be combined — an actor that asks for the named tap mailbox explicitly is tapped once, not twice. The dead-letter bridge is created when the first Bowire client subscribes, so it never runs into the actor system's own bootstrap (up to 1.0.21 it was spawned at bootstrap, which the global mode made fail — dead letters were silently missing there). Should creating it ever fail, the actor system's log says so and the next subscriber tries again.
3. Watch in Bowire
Open the Bowire workbench (/bowire in embedded mode, or the bowire CLI), pick the Akka.NET tab, and stream Tap/MonitorMessages. Every message landing in a tapped mailbox — and every dead letter — appears in real time.
To see only part of it, give the request a filter; every field is optional:
{ "paths": ["/user/dock-*"], "messageTypes": ["PortCall*"], "includeDeadLetters": false }
* stands for any run of characters and a pattern matches the whole value. A path pattern matches the full path (akka://Harbor/user/dock-*) or the path from /user on; a type pattern the full type name or the simple one. Several patterns of one kind are alternatives, and paths and types must both match. A dead letter's recipient is the dead-letter actor, so a path filter lets dead letters through only if it names that path.
Without discovering first, Compose offers the same calls by hand: watching, throughput, the mailboxes, the types seen, the tree, the lifecycle, the restarts, the log and Tell, each with its request as an example to edit. The remote plugin offers the message stream only.
The filter runs before your stream's buffer, not after it: under load the buffer drops its oldest entries, and what the filter keeps out never takes a place there. A narrow filter therefore also keeps the messages you asked for from being dropped.
Throughput per actor
Tap/Throughput sends a snapshot every interval: the actors that received messages in it, busiest first, each with its count, messages per second and a running total since the stream was opened. The request body is optional:
{ "intervalMs": 1000, "top": 50 }
intervalMs is clamped to 100–60000; top: 0 lists every actor. A snapshot looks like:
{
"Timestamp": "2026-09-28T20:30:01.004Z",
"IntervalSeconds": 1.002,
"Actors": [
{ "Path": "akka://Harbor/user/harbor-master", "Messages": 412, "PerSecond": 411.2, "Total": 3950 },
{ "Path": "akka://Harbor/user/dock-1", "Messages": 37, "PerSecond": 36.9, "Total": 402 }
]
}
For tapped actors, each entry also says how long their messages waited and how long the actor took. WaitAvgMs/WaitP95Ms cover enqueue to dequeue, and ProcessingAvgMs/ProcessingP95Ms cover dequeue until the actor is done. Handled is the number of messages the actor handled in the interval. That answers whether an actor is slow because messages pile up or because each one takes long:
{ "Path": "akka://Harbor/user/crane-A1", "Messages": 12, "PerSecond": 11.9, "Total": 340, "Handled": 12, "WaitAvgMs": 0.04, "WaitP95Ms": 0.11, "ProcessingAvgMs": 0.21, "ProcessingP95Ms": 0.65 }
The tap takes these times without the host doing anything. It reads the enqueue time and the dequeue time, and the actor counts as done when its mailbox next turns to the queue on the same thread. Akka's run loop does that after every message, either for the next one or, at the dispatcher's throughput limit, to check whether more are waiting. The p95 comes from up to 4096 timings per actor and interval, sampled evenly once there are more.
The counts are taken where the tap sees the message, not from the message stream: that stream drops the oldest entries when its reader falls behind, and a figure read off it would be lowest exactly when an actor is busiest. Dead letters count under the dead-letter path. As with the message stream, nothing is counted while nobody watches.
What is waiting in a mailbox
Tap/Mailboxes (in the invoke pane) lists every tapped mailbox with its depth and the oldest queued messages, deepest first:
{ "path": "/user/dock", "head": 5, "nonEmptyOnly": true }
path is a prefix, from the root as above or with the system's address (akka://Harbor/user/dock). All fields are optional; head is clamped to 0–100 (default 5). Nothing is taken off a queue: the head is read from a snapshot, and the actor goes on processing every message in the order it was sent. The view knows a mailbox from the moment the actor is created until it stops — registering it is the only cost, once per actor, none per message.
The actor tree
Tree/Children lists an actor's children in name order: each with its type, how many children it has, the messages waiting in its mailbox, its restarts (with actor telemetry on), and whether it is tapped and whether Tell may reach it. It sees every actor, tapped or not, read through Akka's public API. Ask for / to get the two guardians, /user (the default) or any actor's path:
{ "path": "/user/dock-1", "pageSize": 100, "pageToken": "" }
A large parent comes a page at a time: nextPageToken names the last child on the page, so a child that starts or stops between two pages never shows twice or goes missing.
In the workbench, the answer comes with the Actor tree view: expand an actor to load its children, "show more" for the next page, and with actor telemetry on, the open part of the tree follows starts, stops and restarts live through Lifecycle/Events.
A node offers what applies to it, on the row under the pointer: watch its messages (Tap/MonitorMessages for its path), watch all with its descendants, look into its mailbox (Tap/Mailboxes), and tell it a message (Tap/Tell) where the host allows it. Watching and the mailbox need a tapped actor. Each opens the method in a new workbench tab with the request filled in; you run it.
Starts, stops, restarts and the exception behind each
"Why does this actor keep restarting?" Lifecycle/Events streams what happens to the actors: each start, stop, restart and resume, with the actor's path and type, and after a failure the supervisor's directive (Restart, Resume or Stop) and the exception, its stack trace and inner exceptions. Lifecycle/Restarts lists the actors restarted since the plugin started, most restarts first, each with its latest exception. Both take the tap's patterns, by path and by actor type; Restarts also takes top (default 50, 0 for all):
{ "paths": ["/user/dock-*"], "actorTypes": ["Crane*"], "top": 10 }
An event looks like:
{
"kind": "restarted",
"path": "akka://Harbor/user/crane-A1",
"actorType": "Harbor.Actors.CraneActor",
"timestamp": "2026-11-29T09:12:04.551Z",
"directive": "Restart",
"failure": { "type": "System.InvalidOperationException", "message": "Crane jammed lifting cargo from 103", "stackTrace": " at Harbor.Actors.CraneActor.OnReceive(Object message) …" }
}
The events come from Akka's actor telemetry, which the host switches on; the plugin never changes the actor system's configuration, and without it both calls answer that it is missing:
akka.actor.telemetry.enabled = on
With it on, Akka publishes an event for every actor that starts, stops or restarts. The plugin counts restarts from the moment it starts in the host, so the first look at Restarts is not empty; starts, stops and the supervisors' failure log are subscribed only while somebody watches the stream. The directive comes from the supervisor's failure log, which Akka writes before it acts: a resume and a stop the supervisor ordered carry their exception from there, so a strategy whose logging is switched off leaves a stop without one. This works for every actor, not only tapped ones, and in the embedded plugin; the remote plugin does not offer it yet.
The actor system's log, next to its messages
Log/Events streams the actor system's own log events as they are logged, so cause and effect sit on one timeline with the messages: level, source, the logging type, the actor's path where an actor logged it, the formatted message, timestamp, thread, and an exception with its inner ones. Filter from a level up, by source (an actor's path or a non-actor logger's name, or the logging type by full or simple name) and by actor path:
{ "minLevel": "Warning", "sources": ["Cluster*"], "paths": ["/user/dock-*"] }
A path filter keeps out events logged outside any actor. The stream shows what the system logs: the plugin never changes its log configuration, so Debug events appear only where the host's akka.loglevel publishes them; the method's description names the level the system runs at. The events are subscribed only while somebody watches.
Sending a message (off by default)
Tap/Tell sends a message to an actor and shows what it sends back — as a duplex channel, or once from the invoke pane (with replyTimeoutMs it waits for the first reply). It exists only when the host allows it; the workbench cannot switch it on. Allow it in code:
BowireAkkaExtensionProvider.Instance.Apply((ExtendedActorSystem)system)
.EnableTell(new TellPolicy(
paths: ["/user/dock-*"],
messageTypes: [typeof(ScheduleArrival), typeof(CloseBerth)]));
or in HOCON:
bowire.akka.tell {
paths = ["/user/dock-*"]
message-types = ["Harbor.Messages.ScheduleArrival, Harbor"]
}
Both read each message type by reflection, so neither works in a trimmed or AOT host. There, list the types with their source-generated JSON type info instead. The message is then read without reflection, under the options of your JsonSerializerContext:
[JsonSourceGenerationOptions(JsonSerializerDefaults.Web)]
[JsonSerializable(typeof(ScheduleArrival))]
[JsonSerializable(typeof(CloseBerth))]
partial class HarborJson : JsonSerializerContext;
BowireAkkaExtensionProvider.Instance.Apply((ExtendedActorSystem)system)
.EnableTell(TellPolicy.For(["/user/dock-*"], HarborJson.Default.ScheduleArrival, HarborJson.Default.CloseBerth));
For the HOCON section, register the types when you create the actor system. A name in message-types that matches a registered type (by full name, with or without its assembly) is read through it; any other name falls back to reflection, which an AOT host refuses with a log line. Registering a type allows nothing by itself: only the names in message-types are sent.
var setup = BootstrapSetup.Create().WithConfig(config)
.And(new BowireAkkaSetup(HarborJson.Default.ScheduleArrival));
var system = ActorSystem.Create("Harbor", setup);
A request names a concrete actor, one of the listed types, and the message as JSON:
{ "path": "/user/dock-1", "messageType": "Harbor.Messages.ScheduleArrival", "message": { "shipId": 101 } }
What the policy decides is all that is decided:
- Only listed types. The JSON is deserialized into exactly the type chosen from the list; a
$typein the body is ignored, so a request cannot name a type the host did not list. - Only concrete, local paths. An actor selection understands more than a path —
*sends to every match,..climbs to the parent (/user/dock-1/../adminwould pass a/user/dock-*pattern), another address sends over the network. None of that is accepted. - Every tell is logged in the actor system's own log, with path and type; enabling Tell logs a warning naming what is allowed.
DisableTell()takes the permission back; an open channel refuses from then on.
The tells come from an actor created for the channel, so a reply to Sender arrives in the channel rather than in dead letters.
Ask: send and wait for the reply
Tap/Ask sends one message under the same policy and waits for the reply:
{ "path": "/user/harbor-master", "messageType": "Harbor.Messages.ScheduleArrival", "message": { "shipId": 7 }, "timeoutMs": 5000 }
The answer is the reply, or timedOut: true with status Timeout. Either way it includes the round trip in milliseconds and the correlationId under which the message stream shows request and reply as a pair (see the envelope). timeoutMs is 1–30000 and defaults to 5000. A reply that comes after the timeout still shows up in the stream, as a dead letter with the same correlation.
A form per message type
With Tell allowed, discovery also lists a Tell service. Each allowed type is one of its methods, and its form has the type's fields: names as the JSON carries them, after your context's naming policy; enums as a choice where the type is written by name; nested types as nested forms; lists as repeated fields. Only the path and the reply timeout are left to fill in around it. The form sends exactly its own type; the gateway checks it like any other tell. Two allowed types with the same name appear under their full names.
Tap/Types lists the message types the tap has seen while somebody watched, how often, and whether Tell allows each. That shows what flows through the system even where nothing may be sent.
Letting an agent ask (MCP)
An agent looking into "why do dead letters pile up?" or "which actor is the bottleneck?" can use the same views as a person in the workbench. Bowire's MCP adapter offers the plugin's methods as MCP tools, each with the typed request of its form. Add the package Kuestenlogik.Bowire.Protocol.Mcp and point the adapter at the embedded system:
builder.Services.AddBowire();
builder.Services.AddBowireMcpAdapter(o => o.UpstreamServerUrl = "akka://embedded");
// ...
app.MapBowire();
app.MapBowireMcpAdapter(); // /bowire/mcp/adapter
The tools are the plugin's own calls, nothing beside them:
| Tool | What it answers |
|---|---|
Tree_Children |
an actor's children, a page at a time |
Tap_Mailboxes |
depth and the next queued messages per mailbox |
Lifecycle_Restarts |
restarts per actor, with the exception behind them |
Tap_Types |
the message types seen, and whether Tell allows each |
Tell_<Type>, Tap_Ask |
send a message, or send and wait for the reply: only when the host's Tell policy allows it, and logged as every tell is |
Without a Tell policy there are no Tell or Ask tools. Tap/Tell itself is a channel the client keeps writing into, so it is not a tool. An agent sends through the typed Tell forms instead, whose tools spell out the fields of their message type, nested messages and enum values included, so an agent sees the shape it has to send.
The streams are tools too: Tap_MonitorMessages, Tap_Throughput, Lifecycle_Events and Log_Events. A call returns a sample of the stream, never the stream itself: the messages that arrive until _maxFrames or _durationMs, or until the stream ends. The adapter's options cap both bounds (by default 200 frames and 30 s).
Who is in the cluster
For a host that runs Akka.Cluster, the separate package Kuestenlogik.Bowire.Protocol.Akka.Cluster adds a Cluster service (hosts without a cluster need not pull in Akka.Cluster):
dotnet add package Kuestenlogik.Bowire.Protocol.Akka.Cluster
builder.Services.AddBowireAkkaCluster();
Cluster/Members— every member as this node sees it: address, roles, status (joining,up,weakly-up,leaving,exiting,down,removed), whether this node can reach it, and its app version; the leader and the leader of each role.{ "roles": ["office"] }narrows it to members with one of the roles.Cluster/Events— members joining, coming up, leaving, exiting, being downed and removed, becoming unreachable and reachable again, and leader and role leader changes, as they happen. It starts with the current members as events;{ "initialState": false }follows changes only.
In the workbench, a Cluster/Members answer comes with the Cluster members view (#127): a row per node with its status, roles and app version, the node answering, the leader and the role leaders marked, unreachable nodes highlighted. It follows Cluster/Events and reads the members again on every change, so it shows the cluster's own state as it moves.
The same package adds a Sharding service for the entity types this node runs sharding for:
Sharding/Regions— which node holds which shard of each type, how many entities each shard has, the shards a region failed to start, and whether entities are remembered (akka.cluster.sharding.remember-entities).{ "entityIds": true }also lists the entity ids of this node's shards;typeNamesnarrows it to some types.Sharding/Tell— a message to one entity by type name and entity id, through its shard region as aShardingEnvelope(Akka.NET routes it with any message extractor). Off unless the host's Tell policy allows the entity's path,/system/sharding/<type>/<shard>/<id>, and the message type:bowire.akka.tell { paths = ["/system/sharding/orders/*"] message-types = ["Harbor.Orders.Cancel, Harbor"] }Every tell is logged like the others.
Sharding/Events— shards being allocated and rebalanced, as a stream, from two sources:The coordinator's decisions —
allocated(to which node),rebalance-started(from which node),handed-off— on every node, once the host wraps the allocation strategy it starts sharding with. The host's strategy decides as before; the wrapper only writes down what it decided and publishes it on the PubSub topicbowire-sharding:var settings = ClusterShardingSettings.Create(system); var strategy = BowireShardAllocation.Observe(system, "orders", ClusterSharding.Get(system).DefaultShardAllocationStrategy(settings)); await ClusterSharding.Get(system).StartAsync("orders", props, settings, extractor, strategy, PoisonPill.Instance);This node's shards —
shard-started,shard-stopped— from the actor telemetry the lifecycle view uses (akka.actor.telemetry.enabled = on), with no change to the host: a handoff shows as a shard stopping on one node and starting on another. Without the wrapper, the stream starts with a notice saying how to get the coordinator's view.
Akka.NET has no public rebalance event; these two are what it offers without changing it.
And a PubSub service for Distributed PubSub, the cluster's message bus:
PubSub/Topics— the topics across the cluster, with how many subscribers each has, in all and on each node (nodes). Every member's mediator is asked for the topics and subscribers on its own node, so a topic shows from any node without waiting for gossip; an unreachable member is not asked, and one that does not answer in time is listed without a count (#129).PubSub/Subscribe— follow a topic from the workbench: every message published to it from now on, with its type and its payload as JSON.{ "topic": "harbor-news", "group": "bowire" }subscribes in a group.PubSub/Publish— publish a message to a topic, under the Tell policy: a topic is allowed by its mediator path,/system/distributedPubSubMediator/<topic>, beside the message type.
And a read-only DistributedData service for the replicator's state, whose value differs per node until it converges:
DistributedData/Keys— the keys the replicator holds.DistributedData/Get— a key's value with its CRDT type and a readable rendering: a counter its number (as text, it may exceed 2^53), a flag its state, a set its elements, a register its value with who wrote it when, a map its entries. From this node's replica by default;{ "key": "visits", "consistency": "majority" }(orall, or a number of replicas) reads across nodes, which shows whether the replicas agree.DistributedData/Changes— a key's value each time it changes on this node, starting with the current one.
Two incident questions get their own services:
Singletons/Where— the cluster singleton managers this node runs, and the node each singleton runs on right now: every member is asked (withIdentify) whether its manager has the singleton, so the answer is what the cluster says, not a guess from member age. More than one node would be listed — the split brain the resolver is there to prevent.Singletons/Events— a singleton starting or stopping on this node, as a handover brings it here or takes it away (needsakka.actor.telemetry.enabled = on).SplitBrain/Strategy— the downing provider and, for the Split Brain Resolver, its active strategy,stable-afterand the strategy's settings.SplitBrain/Events— members becoming unreachable and reachable again, being downed and removed, and the resolver's decisions as it logs them: which side it keeps, whom it downs, why. The log lines need the log level that carries them (akka.loglevel = INFOor lower).
On an actor system that does not run the cluster provider, these methods answer that akka.actor.provider = cluster is missing. Akka.NET has no data centers, so a member carries none. The views run embedded; over the remote tap they come with #117.
Standalone: attach the bowire CLI to a running cluster
Everything above runs embedded — the workbench inside the host. To watch a cluster from the standalone bowire CLI instead, add the separate package Kuestenlogik.Bowire.Protocol.Akka.Remote (it brings Akka.Cluster.Tools; embedded-only users don't need it).
In the host, which has to run Akka.Cluster, opt in:
using Kuestenlogik.Bowire.Protocol.Akka.Remote;
system.EnableBowireRemoteTap();
That starts a relay at /user/bowire-tap-relay and registers it with the ClusterClient receptionist. The CLI, with the same package installed as a plugin, connects to a contact point of the cluster:
bowire --url "akka.tcp://Harbor@10.0.0.5:4053?clientHost=10.0.0.9"
and offers what an embedded workbench offers: Tap/MonitorMessages with the same filter and payloadFormat, Tap/Mailboxes, Tap/Throughput, the actor tree, lifecycle and log (#117). The host's own plugin answers every call, so filters, rendering and counting run in the host and only results cross the network. To also offer what other packages add — the cluster views of Kuestenlogik.Bowire.Protocol.Akka.Cluster — hand the relay the host's services: system.EnableBowireRemoteTap(app.Services). The CLI runs a small actor system of its own that the relay sends back to; clientHost is the name it binds and advertises, and it has to be reachable from the cluster (default localhost).
One tap across the cluster. Every node that calls
EnableBowireRemoteTap()serves the message stream, and the CLI subscribes to all of them through the one contact point (#113). Each message names itsnode;{ "nodes": ["akka.tcp://Harbor@10.0.0.6:4053"] }narrows the stream to some nodes. A node that joins is picked up at the next renewal (within 10 s), one that leaves drops out; with{ "nodeEvents": true }the stream also says so, with a frame per node subscribing and going quiet for longer than the lease.A message across nodes. A tapped message whose sender lives on another node names that node (
senderNode). With one more HOCON line on a node, its tap also shows the messages leaving it for other nodes, as Akka.Remote takes them —direction: "sent", with the recipient on the other node:akka.remote.default-remote-dispatcher.mailbox-type = "Kuestenlogik.Bowire.Protocol.Akka.BowireTapMailbox, Kuestenlogik.Bowire.Protocol.Akka"In the CLI's cluster-wide tap, the send on one node and the arrival on another are then tied together: a
kind: "transit"frame with both nodes, both times andtransitMs, the time across as the two nodes' clocks tell it (#130). Akka's own traffic between the nodes (heartbeats, gossip) stays out. The message is read out of Akka.Remote's internalEndpointManager.Sendby reflection; a version of Akka.Remote that changes it shows no sends rather than wrong ones.Through Akka.Management. A cluster that runs Akka.Management can be reached by its HTTP endpoint instead:
bowire --protocol akka-remote --url http://10.0.0.5:8558reads the receptionist from/cluster-client/receptionistand connects there (a base path and?clientHost=carry over), and addsCluster/SeedNodesfrom/bootstrap/seed-nodes(#131). A host without the relay still answers that one method. Akka.Management for .NET serves no member, shard or health routes; members and shards come over the relay, and health checks from Akka.HealthCheck's ASP.NET endpoints can be called with Bowire's REST plugin.Read-only unless the host says otherwise. Tell, Ask and the other sending methods (the typed Tell forms,
Sharding/Tell,PubSub/Publish) are neither offered nor carried out over the relay until the host setsbowire.akka.remote-tap.allow-tell = on. Then the host's Tell policy decides what may be sent where, exactly as embedded, and the host logs every tell. Anyone who can reach the receptionist can then send what the policy allows: turn it on only for a cluster whose ClusterClient access you control. TheTap/Tellchannel stays embedded-only.Off unless enabled, and enabling logs a warning.
Message contents cross the network. Akka remoting is not authenticated unless you configure TLS — enable the relay where the network is trusted, or with remoting secured.
A CLI that goes away stops being served: it renews its subscription every 10 s and the relay drops one not renewed for 30 s (
bowire.akka.remote-tap { lease = 30s, heartbeat = 10s }in the host). The relay's heartbeat keeps ClusterClient's response tunnel, which closes after 30 s of silence, open in quiet times.
The envelope
Each observation is a TappedMessage, serialized to JSON:
{
"Recipient": "akka://Harbor/user/dock-1",
"Sender": "akka://Harbor/user/harbor-master",
"MessageType": "Kuestenlogik.Bowire.Protocol.Akka.Sample.Actors.ScheduleArrival",
"Payload": "ScheduleArrival { ShipId = 101, ShipName = Nordstern }",
"Timestamp": "2026-07-06T09:14:22.187Z",
"IsDeadLetter": false
}
Payload is the message's ToString() — always there, whatever the message is. For its fields, pick a payloadFormat in the MonitorMessages request (the workbench offers it as a drop-down; it combines with the filter). Each message then also carries PayloadJson, the message as a JSON object:
payloadFormat |
PayloadJson |
|---|---|
none (default) |
not sent |
auto |
the most readable rendering that works: a JSON serializer the actor system binds to the type on purpose; protobuf's own JSON mapping for a protobuf message (found by reflection — the plugin has no protobuf dependency); the public properties; the instance fields when the properties show nothing; Akka's default JSON as the last resort |
properties |
the public properties |
fields |
the instance fields, public and private, read by reflection — the object's actual state, also for a class that exposes none of it (auto-property backing fields under the property's name; cycles and depth are cut off) |
akka |
what the configured serializer would put on the wire: its JSON as is — for Akka's default a type-preserving format where 17 is {"$": "I17"} — or, for a binary serializer such as protobuf or Hyperion, { "serializer": ..., "bytes": ..., "base64": ... } |
The tap sees the message before anything serializes it — inside one process Akka never does — so protobuf or Hyperion bindings need no decoding; they only matter for akka, which shows what they would send.
Rendering happens inside the sender's Tell, so it only happens while somebody asked for it, and once per message and format however many readers did. A message that will not render in the chosen format, or whose JSON is above 256 KB, has PayloadJson: null and is delivered as usual.
With "timings": true in the MonitorMessages request, every message also comes a second time once its actor has handled it. That second event has "Stage": "processed", WaitMs (time in the mailbox) and ProcessingMs (time the actor took), and leaves out PayloadJson. Without the flag, the stream is as before.
None of this costs anything while nobody watches. Timing begins when a throughput view or a reader with timings subscribes, and until then the tap mailbox queues messages exactly as Akka's own does. Measured with 2 million messages through one tapped actor and nobody watching: about 109 ns per message before timings existed and about 101 ns after. The check whether anybody watches no longer takes a lock, which more than pays for the rest.
While somebody does watch, the tap takes no lock per message either: the list of readers and counters is replaced as a whole when one comes or goes, and each message reads it once. A throughput view with no message reader counts each message by its actor's path and never turns the message into text. With one throughput view open on the same benchmark, the cost fell from about 730 ns to about 495 ns per message; most of what remains is taking the times (#125).
A message that is part of an ask also carries CorrelationId and Role. The correlation is the path of the temporary actor Akka creates for each ask. Role is ask on the request, whose sender is that actor, and reply on the answer:
{ "Recipient": "akka://Harbor/user/harbor-master", "Sender": "akka://Harbor/temp/c", "MessageType": "...", "Payload": "...", "CorrelationId": "akka://Harbor/temp/c", "Role": "ask" }
Requests are marked for every ask, also between actors inside the system, as long as the asked actor is tapped. A reply goes to the temporary actor, which has no mailbox to tap. The tap therefore sees the reply to an ask from the workbench (Tap/Ask, or Tap/Tell with replyTimeoutMs) and a reply that came too late, which ends up in dead letters. It does not see the reply to an ask inside the system that was answered in time.
Sample
A runnable end-to-end sample lives under samples/Kuestenlogik.Bowire.Protocol.Akka.Sample — three actors in a small harbour workflow plus a 2-second port-call ticker, so the live stream is never quiet.
dotnet run --project samples/Kuestenlogik.Bowire.Protocol.Akka.Sample
Then open http://localhost:5080/bowire and stream the Akka.NET tab.
Documentation
- ROADMAP.md — shipped and planned versions
- COVERAGE.md — what the plugin taps from Akka's surface, and what it deliberately doesn't (yet)
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Akka.Cluster.Tools (>= 1.5.75)
- Kuestenlogik.Bowire (>= 2.12.0)
- Kuestenlogik.Bowire.Protocol.Akka (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.