Engineer's Diary

on messaging and event architecture

A style is not its benefits

A style is a coordinated set of constraints. A characteristic is what holding to those constraints produces afterward. Most writing about event-driven architecture still treats the two as one list — and so, in one famous example, does the case for why EDA is basically just messaging.

By R. AxiomA clarification, not a correction13 min read
abstract

An architecture style is a coordinated set of constraints. A characteristic is what results from holding to those constraints, observed afterward. The two are not the same kind of claim — one is followed, the other happens as a consequence — and conflating them is the single most common error in how event-driven architecture gets written about.

The clearest place to watch that confusion cause real damage is a case where two named styles share so much machinery that the confusion looks almost justified: message-oriented middleware and event-driven architecture. Gregor Hohpe's own best-known example walks one piece of infrastructure through three configurations without ever changing the wire, which can be read as proof the two styles are one and the same.

They aren't, and the reason routes through the same style-versus-characteristic distinction this article opens with. Roy Fielding's dissertation supplies the vocabulary: a style is a coordinated set of constraints, and everything a system exhibits as a result — loose coupling, scalability, extensibility — is downstream of those constraints, not a peer sitting beside them.

Three more layers complete the picture, and without them the account is still incomplete. Upstream of the style sits the factor that pulled it into existence in the first place — no architecture gets invented for its own sake, though the pull is reconstructed architecturally here, not documented as settled history. Between style and its constraints sit the elements the architecture is actually built from — its data, connector, and component pieces. Downstream of the constraints sits a reusable vocabulary of solutions the industry has converged on, not a deterministic next step — delivery patterns like Publish-Subscribe and Competing Consumers, a persistence pattern like Event Sourcing that answers a different question entirely — since a constraint alone doesn't uniquely determine how to build it, and more than one pattern can satisfy the same one.

Key insights

  • A style is a coordinated set of constraints; a characteristic is what holding to them produces. Confusing the two is like confusing a diet with the weight loss — one is followed, the other happens as a result.
  • Most EDA write-ups sense this distinction without naming it. Filing scalability under "benefits" instead of "principles" is progress. It still leaves style, principle, and constraint collapsed into one undifferentiated pile.
  • Sharing a connector isn't sharing a style. RPC-over-HTTP and REST run on the identical transport and count as different architectures anyway, because style tracks constraints, not wires.
  • A principle is an intent; a constraint is one way of honoring it. "A publisher shouldn't need to know who acts on a fact" is a principle. "Delivery is broadcast to a topic" is a constraint that satisfies it — not the only one that could.
  • A pattern is neither a constraint nor a characteristic — it's reusable vocabulary for a solution the industry converged on, not the one deterministic answer a constraint produces. Publish-Subscribe is what "broadcast to an unknown audience" looks like once someone has to ship it, which is why the two names get used almost interchangeably — but it isn't the only pattern that could satisfy that constraint.
  • MOM and EDA, read architecturally, weren't pulled into existence by the same problem — and EDA isn't a rival category to MOM. MOM answers integration between systems nobody controls end-to-end. EDA answers a later, harder problem on top of it: an audience too open-ended to enumerate in advance.
  • Characteristics are earned, not chosen. Take away the broadcast constraint and extensibility disappears with it — the characteristic doesn't weaken, it stops holding.

People use the word "principle" to mean two different things, and event-driven architecture write-ups do it constantly.

Sometimes a principle is a rule you follow while building something — asynchronous delivery, say. Sometimes it's a result you get afterward — scalability, say.

Those aren't the same kind of claim. One is a decision. The other is a receipt.

Most industry writing about EDA blends the two into one list. This article exists to unblend them, using a case where the confusion has real consequences: whether a system counts as message-oriented middleware, or something meaningfully different.


01EDA, plainly

What EDA is, before any comparison

Before the MOM comparison starts, and before Hohpe's naming example makes the two styles look interchangeable, EDA deserves a plain description on its own terms — the same layers the rest of this piece uses, applied once, directly, with no MOM in the frame yet.

Factor. The problem that pulled EDA into existence: an audience too open-ended to enumerate in advance — systems the sender doesn't know about and shouldn't have to address by name.

Style. Asynchronous, broker-mediated delivery, committed to one further idea beyond that: a message represents a fact that already happened, broadcast to whoever finds it relevant — not a command aimed at someone specific.

Elements

Fielding's dissertation splits what a style is built from into three kinds: data elements, connector elements, and component elements. EDA's version of each is concrete and nameable.

KindElementRole
ComponentProducerPublishes an event when something happens. Doesn't know, and doesn't need to know, who's listening.
ComponentConsumerSubscribes to an event type and reacts to it. Unknown to the producer in advance — that's the constraint the style is built on, not an accident of deployment.
ConnectorBrokerMediates delivery between producers and consumers — a topic, an event bus, a log. Never a participant in the decision the event represents.
DataEventA fact: something that already happened. Immutable once published, addressed to no one in particular.

Together, these four are the minimum needed to make the broadcast constraint mechanically possible: without a producer, a consumer, a connector that doesn't require the producer to name a destination, and a payload that's a fact rather than a request, the constraint can't actually be satisfied.

Constraints. Delivery is broadcast, to an unknown or plural audience. The payload represents something that already happened. Publication happens as the event occurs.

Benefits. Extensibility — new consumers subscribe without touching the sender. Loose coupling of intent, not just location. Auditability and replay, where the channel is durable.

That's one formulation of EDA, stated plainly — broadcast delivery to an audience too open-ended to enumerate. It's the formulation this article develops in full because it's the one where the distinction from MOM is sharpest, not because it's the only shape event-driven architecture takes. Point-to-point event notification to a single known consumer, or a choreographed flow among a fixed set of known services, gets called event-driven too, on the strength of the payload being a fact rather than a command alone — the audience doesn't have to be open-ended for that part to hold. What makes the broadcast version easy to lose sight of is a single piece of infrastructure that can be reconfigured to look like three different styles without changing the wire — which is where the confusion actually starts.


02the pattern

A recurring pattern in how EDA gets described

Search for "principles of event-driven architecture" and a pattern shows up fast.

One widely circulated write-up lists exactly four items under a heading literally titled Principles: loose coupling, scalability, real-time responsiveness, fault tolerance. (source)

None of those four are decisions anyone made while designing the system. They're receipts — things a system exhibits after it's built a certain way, filed under a heading that implies the opposite.

To be fair to the wider industry, most vendor write-ups do better than that. Gravitee's own EDA article lists nearly the same four items but correctly files them as benefits, not principles. (source)

GraphApp's guide goes further: it keeps a genuine, separate Principles section, distinct from its benefits list. (source) Akamai and Analytics8 do the same, structuring around benefits and components rather than mislabeling one as the other. (source) (source)

That's real progress. Part of the industry already senses that a decision and a receipt aren't the same kind of thing.

But "benefits" versus "everything else" is still only one cut. None of the five sources checked for this article separate a style from the connector it happens to run on, or a principle from the constraint that operationalizes it.


03two questions, not one

Style and its benefits are different questions

A style answers one question: what did we decide to do?

A characteristic answers a different one: what did we get, once we did it?

Statelessness is a style decision. Visibility, reliability, and scalability are what statelessness earns you afterward, by Fielding's own account of how REST was derived. Nobody following REST decides to be scalable the way they decide to be stateless — scalability shows up because statelessness was chosen, not the other way around.

The same split applies to any style, not just REST. Asynchronous delivery is a decision. Decoupling is what that decision earns. Broadcast delivery is a decision. Extensibility is what that decision earns.

Once the split is visible, a lot of EDA literature reads differently. A list titled "principles" that actually contains scalability and fault tolerance isn't describing decisions at all. It's describing receipts, filed under the wrong heading.

The clearest place to watch this cause real confusion, rather than just sloppy labeling, is a case where the receipts for two different styles turn out to look almost identical: message-oriented middleware and event-driven architecture.


04the shared example

One channel, three names

Gregor Hohpe's 2006 paper, "Programming Without a Call Stack," is the best worked example of why this confusion happens.

He walks a single piece of infrastructure — a channel and a message — through three configurations, changing nothing but the channel's name and the assumption riding along with it.

Channel nameWhat's actually sentWhat's assumed about the recipient
CreditService"do credit-check work"a single, specific, known component
VerifyCreditCard"run this exact operation"some component that can do it, still expected to answer
OrderReceived"this happened"none — zero, one, or many listeners, none owed a reply

Notice what doesn't move across that table. Same channel type, same message type, same asynchronous delivery, all the way down.

A tool watching the wire could not tell these three configurations apart. The only thing that changed, at every step, is what the sender was willing to assume about who was listening — a style question, not yet a benefits question.


05the missing half

The list two pages earlier

Earlier in the same paper, before the naming example, Hohpe gives a direct list of what he considers EDA's defining traits: broadcast communication, timeliness, asynchrony, fine-grained events, an event ontology, complex event processing.

Run the three channel names back through that list and they stop looking equivalent.

CreditService and VerifyCreditCard satisfy almost none of it. OrderReceived satisfies most of it, and only because someone decided to build it that way.

The channel itself never forced that decision. So the paper actually contains both halves of the argument — a demonstration that the connector alone can't distinguish the styles, and a list of exactly what can. The naming example just doesn't point back at the list, which is likely why it gets quoted on its own so often.


06fielding's answer

The channel is not the style

Roy Fielding's dissertation gives the missing sentence a name. An architectural style, in his framing, is a coordinated set of constraints applied to a system — not the connector those constraints happen to run over.

His derivation of REST makes the point mechanically. He starts from a null style with no constraints and adds one at a time — client-server, then layering, then cacheability, then statelessness, then a uniform interface.

Several of the resulting styles, including plain RPC-over-HTTP and REST itself, share the exact same underlying connector. Nobody calls them the same architecture. The shared wire was never the thing doing the classifying.

MOM and EDA share more than a wire — they share the elements themselves. EDA's producer, consumer, and broker are MOM's sender, receiver, and channel, renamed and re-committed to a different assumption about who's on the other end. That renaming is easy to miss, which is exactly why it causes the confusion this article opened with. But the elements were never what distinguished the styles, any more than the connector distinguished RPC-over-HTTP from REST. The constraints riding on top of them did.


07why each one exists

What each style was pulled into existence to solve

A style's constraints make more sense read against the goal that plausibly produced them. What follows is an architectural reconstruction, not a documented history — neither style's origin is cited to a settled timeline here, and the account is meant to explain why the constraints hang together, not to assert that the industry moved through these problems in this exact order.

Read that way, MOM's pull looks like integration at scale between systems nobody controlled end-to-end. Point-to-point synchronous calls between every pair of systems become untenable well before they become unreliable, which is a plausible reason an industry would converge on handing a message to a broker and trusting it to eventually arrive.

EDA's pull, on the same reading, arrives on top of that already-solved problem. Once asynchronous delivery exists, a harder problem becomes visible: an audience too open-ended to enumerate — systems the sender doesn't know about and shouldn't have to address by name. That's exactly the assumption command-style messaging still makes, and a plausible account of what stops scaling once the audience stops being fixed.


08the missing layer

Patterns are what the industry converged on

One constraint can be satisfied more than one way. The earlier note on broadcast delivery already made that point: a durable log and a broadcast channel could both honor the same principle.

In practice, though, one implementation often becomes the default anyone reaches for first. That's what a pattern is — not a constraint, and not a characteristic, but a name for a solution the industry has converged on often enough to be reusable vocabulary. Patterns aren't a mandatory layer a constraint deterministically produces; a constraint can be satisfied by more than one pattern, a pattern can partially satisfy more than one constraint, and which one a given system reaches for depends on what else it needs.

For MOM's known-destination constraint, one common channel pattern is the Point-to-Point Channel — a queue with exactly one logical consumer, whatever its internal concurrency. Paired with Request-Reply, it's a common MOM answer to "the sender expects an answer," correlating an asynchronous response back to whichever request produced it.

For EDA's broadcast constraint, the channel pattern the industry reaches for most often is Publish-Subscribe — a channel any number of subscribers can attach to, none of them known to the publisher in advance. It's such a complete fit that "pub-sub" and "event-driven" get used almost interchangeably in casual conversation — the same collapse this article has been arguing against, just one layer down. Competing Consumers is a companion channel pattern, not a substitute for it, and it answers a different question than "fan-out" describes: several instances of one consumer type share a single subscription so throughput scales and load balances across them, while each event is still handled once, by whichever instance claims it — fan-out is what Publish-Subscribe already does, sending one event to many different consumer types; Competing Consumers is about scaling within one of them.

Event Sourcing isn't a channel pattern at all, and grouping it with the ones above is exactly the kind of layer-collapsing this article keeps warning about. Point-to-Point Channel, Request-Reply, Publish-Subscribe, and Competing Consumers all govern how an event moves between components. Event Sourcing governs something else — how state is kept once an event arrives, treating the event log itself as the system of record and deriving current state by replaying it, rather than the log being a side effect of a state store maintained elsewhere. A system can adopt EDA's broadcast constraint through Publish-Subscribe while still storing state conventionally, or adopt Event Sourcing while delivering point-to-point. The two questions — how does an event move, and how is state kept — are independent of each other.

A further pattern answers a problem neither Hohpe nor Woolf named in 2003, because it hadn't shown up at scale yet: schema interoperability across an audience the publisher can never coordinate with directly. Schema Registry (also called Event Registry) is what the industry converged on — a shared, versioned catalog of event shapes that producers register against and consumers validate against, so an unknown subscriber can decode an event correctly without ever talking to whoever published it. It isn't a channel pattern either, and it isn't a role the Broker plays: the Broker moves the event without interpreting it, the registry is specifically in the business of interpretation — the same distinction this article has been drawing at every other layer, one level further down.

Four of the patterns named here — Point-to-Point Channel, Request-Reply, Publish-Subscribe, Competing Consumers — come from the same source: Hohpe and Woolf's own pattern catalog, published three years before the paper this article has spent most of its length examining. He had already named the pieces. The naming example just never drew the line from constraint to pattern the way it drew the line from channel to channel name. Event Sourcing comes from a different lineage entirely — the domain-driven design and CQRS literature associated with Martin Fowler and Greg Young, not Hohpe and Woolf's messaging catalog — a second reason it doesn't belong grouped with the channel patterns above: it wasn't only answering a different question, it wasn't named by the same community either. Schema Registry doesn't come from either source — it's a newer convergence, arriving once systems were actually built at the scale where "unknown audience" stopped being a design assumption and started being an operational problem. Same logic, later arrival.


09the separation

Factors, style, elements, principles, constraints, patterns, characteristics

Put the goal, the elements, Fielding's constraint logic, and the pattern vocabulary each style draws on together, and MOM and EDA can be told apart along seven layers, not two — not as two mutually exclusive categories a system has to pick between, but as a base style and a further specialization of it, which is why a system can hold MOM's constraints and add EDA's on top rather than swapping one for the other.

Factors are the problem that plausibly pulled the style into existence. Style is the named architecture. Elements are what that architecture is physically built from — its data, connector, and component elements. Principles are the intent behind it. Constraints are the concrete rules that make good on that intent. Patterns are reusable solutions the industry has converged on to satisfy those constraints — not the one deterministic solution each constraint produces. Exhibited characteristics are what all of that earns — the receipts, not a second set of choices.

LayerMessage-oriented middlewareEvent-driven architecture
FactorsIntegration between systems nobody controls end-to-end, over networks that can't guarantee simultaneous availabilityAn audience too open-ended to enumerate, once asynchronous delivery alone stopped being enough
StyleAn asynchronous, broker-mediated connector for systems that don't share a process or a moment in timeMOM's connector, plus a specific commitment about what a message means and who it's for
ElementsComponent: sender, receiver. Connector: channel, addressed to a known destination. Data: the message, meaning left to the application — command, document, or event.Component: producer, consumer. Connector: broker — a topic, event bus, or log. Data: the event, a fact addressed to no one in particular.
PrinciplesSender and receiver shouldn't need to be available at the same time. A destination should be addressable without naming a specific instance.A publisher shouldn't need to know, or care, who acts on a fact. The set of interested parties should be free to grow without the publisher's cooperation.
ConstraintsDelivery is asynchronous. A channel connects sender to a known destination. The payload's meaning — command, document, or fact — is left to the application.Delivery is broadcast, to an unknown or plural audience. The payload represents something that already happened. Publication happens as the event occurs.
PatternsPoint-to-Point Channel, addressed to one logical consumer. Request-Reply, correlating an async response to its request.Publish-Subscribe for broadcast delivery to unknown subscribers, and Competing Consumers for throughput and load-balancing within one consumer type — both channel patterns. Event Sourcing (a persistence pattern, not a channel pattern) for durability and replay. Schema Registry (a governance pattern) for interoperability across an audience it can't coordinate with directly.
Exhibited characteristicsDecoupling in time and location. Tolerance of transient failure. Easier integration across heterogeneous systems.Extensibility — new consumers subscribe without touching the sender. Loose coupling of intent, not just location. Auditability and replay, where the channel is durable.

The principle-to-constraint step isn't one-to-one, and neither is the constraint-to-pattern step. "A publisher shouldn't need to know who acts on a fact" could be satisfied by broadcast delivery to a topic, or by a durable log any future consumer reads independently. Publish-Subscribe is simply the one the industry standardized on.

The characteristics layer has no such freedom. Take away the broadcast constraint, or the Publish-Subscribe pattern that implements it, and extensibility disappears — a sender that must know its consumers can't be extended without touching it. Characteristics aren't a sixth list sitting beside the other five. They're what everything above them costs, paid back.


A queue doesn't decide anything, and it doesn't earn anything either — it just moves a message. Style is the decision layer above it: what a component may assume, address, or promise. Characteristics are the receipts those decisions generate afterward, not a second set of choices sitting beside them. Keep the two apart and "is EDA just MOM" stops being the right question — EDA isn't a rival to MOM's constraints, it's MOM's constraints plus a further, specific commitment about what a message means and who it's for. It was only ever a hard question when a receipt got mistaken for a decision, and "built on top of" got read as "nothing more than."