2 minutes

35. Replace Pusher with Azure Web PubSub

Date: 2026-10-12

Status

Proposed

Supersedes 24. Notification

Context

ADR 0024 chose Pusher to tell the owner when a file has been processed. The processing service triggers an event on a public Pusher channel, and the frontend subscribes with the app key that ships in its bundle. Anyone holding that key can subscribe and read the messages, which include file names when a file is not published. The Pusher server credentials are hard-coded in the processing service, and the frontend also depends on Pusher’s server SDK.

The full analysis, with three options, is in the ArcKit record ARC-001-ADR-003 (projects/001-unicorn/decisions/ in the workspace).

Decision

We will send notifications through Azure Web PubSub on the Free tier.

The BFF exposes a negotiate route behind the owner session (ADR 0034) that returns a short-lived connection URL for the owner’s user id. The processing service sends each outcome to that user id, not as a broadcast, and authenticates with its managed identity (ADR 0033), so no key is stored. The frontend keeps the Ionic Toast from ADR 0024 and connects with the Web PubSub JavaScript client. Both Pusher packages are removed.

--- config: look: handDrawn theme: neutral --- flowchart LR PR[Python Service] --managed identity--> WPS[Web PubSub Free] FE[Ionic Frontend] --negotiate, owner only--> BFF[Node BFF] WPS --WebSocket, to the owner--> FE

Consequences

Only the owner receives notifications, and Pusher leaves the list of external processors. The Free tier costs nothing and covers 20 connections and 20,000 messages a day, but has no SLA. That is acceptable because a failed notification never stops publication. A message sent while the browser is offline for more than a minute may be lost; the frontend shows the latest status when it loads. West Europe availability of the Free tier must be confirmed before deploying. In IcePanel, Pusher is replaced by Web PubSub, with the processing service connection tagged Async and the frontend connection tagged Sync.