Realtime Trading Watchlists: Separating Presence From Alert Authorization in Audit Trails
The article argues that a user being online in a shared trading workspace should not automatically grant access to another user's watchlist or notification settings. It recommends testing the authorization decision and its audit record together as one deterministic transaction, with browser tests reserved for checking transport wiring. The author proposes an append-only decision log that records the token subject, workspace, connection, scope, symbol, preference revision, and outcome for every presence change or alert attempt. Each alert carries a preference revision number so consumers can reject stale events after reconnecting without relying on timestamps. The approach separates presence and delivery checks, with a sample Go model demonstrating the principle.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in