Somewhere in 2002, a process asked a question and then died. Its name did not. RFC 3340 — the APEX core specification, running over BEEP — describes it without drama in Section 6.1.1: a service sending its answer back to an endpoint that a different application now occupies. The reply was addressed correctly. The transaction identifier matched. And the process that received it had never asked for anything at all.
The short version
- RFC 3340 split transaction identifiers into two species: ones that lived only as long as a BEEP channel, and ones buried inside APEX service data that could outlive the application that created them.
- A successor application could attach at the same endpoint and receive its predecessor's reply. The endpoint name and the identifier correlated records. Neither proved ownership, continuing intent, or authority to act.
RFC 3340 and the ghost at the endpoint
The uncomfortable sentence is not a retrospective scold. It is a description. An application attaches as an APEX endpoint, sends data to a service carrying an embedded transaction identifier, and later detaches. A second application attaches as that same endpoint and sends requests of its own. Then it receives data from the service answering the first application's request — the first application's identifier still inside it.
Read that twice. The endpoint survived as a routable name. The BEEP connection did not. The first process is gone. The service still has work in flight. A replacement process inherits the name and becomes reachable. The answer arrives, correctly correlated with an earlier request and correctly delivered to the current attachment — and neither fact establishes that the current process owns the old request.
That is a complete succession problem in four sentences, and it is older than most of the systems that still suffer from it. A name is a place, not a person. Confuse the two and you hand a stranger the keys, the mail, and the authority to sign.
Two kinds of lifetime
APEX ran over BEEP, the Blocks Extensible Exchange Protocol, and RFC 3340 drew a line between two scopes. In endpoint-relay and relay-relay exchanges, a transaction identifier meant something only for the lifetime of the BEEP channel. The attach operation shows the rule in miniature: release the BEEP connection and the channel ceases to exist; the application is no longer attached to the relay mesh.
Service traffic behaved differently. Its identifier could be embedded inside the data carried through the mesh, which made it, in the RFC's own phrase, "potentially long-lived." It could cross the very boundary that ended the channel-scoped association. The specification recommends values that appear unpredictable, to reduce ambiguity — a sensible correlation safeguard, and nothing more. A hard-to-guess number does not say which process generated it, which attachment generation still holds authority, whether the original request was cancelled, or whether the successor should act on the answer.
This is where the distinction earns its keep. Endpoint names are routinely treated as if they named a continuously existing actor. RFC 3340's endpoint named a place where an application could be attached. The name could stay stable while the actor behind it changed. A reply addressed to the place could therefore route perfectly and still land on the wrong generation of actor for an irreversible decision.
The early ok
The data path adds a second, deliberately bounded receipt. Under Section 4.4.4.1, a relay first checks whether its BEEP client is authorized to send on behalf of the stated originator and processes any per-data options. Then it returns ok. Only afterward does it process per-originator options and each recipient.
For a recipient in another administrative domain, successful processing means a session was established to a relay for that domain, the new data was sent, and that next relay returned ok. For a local recipient, the access service must permit the communication, the endpoint must be attached, and the application must return ok after application-specific processing. These are different checkpoints on purpose. The first relay's acceptance is not the service's eventual answer, and even the recipient application's protocol acknowledgement is not evidence that a business action succeeded.
APEX offered more evidence without pretending it was the same evidence. A statusRequest option caused each applicable relay to send a later statusResponse through the report service; with targetHop set to all, an originator could trace passage through the mesh. The trace was a chain of observations, not an expansion of the initial ok. It carried a cost too: related timing options could expose private topology, and RFC 3342 advised administrators they might disable them except at administrative ingress and egress.
Identity stopped at the boundary it proved
The architecture used DNS SRV to locate relays. RFC 3340 therefore said relaying integrity depended on DNS and on applications using DNS, with additional assurance when the BEEP initiator required the listener to authenticate itself. BEEP peer authentication could support authorization to attach or relay as an endpoint. End-to-end content authentication, where wanted, belonged to signing the content itself rather than trusting hop-by-hop protection.
Those controls answer important but limited questions: which listener was reached, which peer authenticated, whether that peer could originate for an endpoint, whether the content was altered. They do not collapse an endpoint into a process. They do not bind an embedded transaction identifier to one workload generation. A signed old reply can be excellent proof of what the service sent and still be unsafe for a newly attached process to execute without a durable ownership record.
The minimum useful ledger therefore holds more than an endpoint and a transaction identifier. It needs the authenticated peer, channel and attachment generation; the process or workload identity; a hash of the request; the service destination and durable receipt; relay acknowledgements and status reports; the detach event; the successor's attach event; a hash of the reply; and the policy decision to consume, quarantine or discard it. Idempotency state and the observed application outcome belong after that decision, not inside the identifier.
Why APEX became history — and why the lesson refused to
RFC 3340 appeared on the Standards Track in July 2002, one of four APEX documents: the core, access service, option collection and presence service in RFCs 3340 through 3343. Ten years later, the IETF's Datatracker recorded why all four were moved to Historic status. To the best of the IETF's knowledge, no implementations had been deployed; their functionality was being provided by XMPP, represented by RFCs 6120 and 6121, which had been widely deployed.
Read that record precisely. It supports a non-deployment statement qualified by the IETF's knowledge, and a comparison with XMPP's deployment. It does not prove that the long-lived-identifier mechanism caused APEX's fate. Nor does Historic status make the lifecycle example obsolete. If anything, the example survives because it names a problem shared by job queues, callbacks, orchestration systems and service identities: a stable address can conceal a replacement.
The right conclusion is not that late replies are invalid. It is that their validity has several dimensions. The bytes may come from the expected service. The identifier may match an old request. The endpoint may be correct. The receiving process may still lack ownership or current authority. A safe consumer joins those receipts instead of letting a convenient correlation key impersonate all of them.
The identifier was never the identity. It was a receipt. And receipts do not inherit.
Sources
- RFC 3340: The Application Exchange Core
- RFC Editor record for RFC 3340
- RFC 3340 errata
- IETF Datatracker history for RFC 3340
- RFC 3080: BEEP Core
- RFC 3081: Mapping BEEP onto TCP
- RFC 3341: APEX Access Service
- RFC 3342: APEX Option Party Pack
- RFC 3343: APEX Presence Service
- RFC 6120: XMPP Core
- RFC 6121: XMPP Instant Messaging and Presence
- RFC 2782: DNS SRV
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






