Event-driven architectures let services communicate by publishing events instead of calling each other directly. A service announces that something happened, and any number of others react in their own time. The attraction is clear. Producers and consumers are decoupled, bursts of load are absorbed by queues, and a slow or failed consumer does not immediately break the producer. These advantages are why asynchronous messaging sits at the heart of many microservice and serverless systems. This commentary does not argue against it. It argues that the approach exchanges one kind of difficulty for another. Synchronous calls fail loudly and immediately, while asynchronous ones fail quietly, later and somewhere else, and designs that ignore this discover it in production.

How does the complexity show up?

The first surprise is that messages are usually delivered at least once, so consumers must expect duplicates. A handler that creates an order each time it receives a message will create two when the broker redelivers. Ordering is the second. Across partitions or competing consumers, events may be processed in a different order from the one in which they were produced, so an update can arrive before the creation it modifies. Third, there is no single place where the flow of a business transaction can be read. Understanding why a customer was charged twice means following a trail of events through several services and queues, which requires correlation identifiers and distributed tracing that must be designed in from the start.

Advertisement

What are the latency implications?

Asynchronous systems usually improve throughput while worsening the predictability of delay. A message may be processed in milliseconds or sit in a backlog for minutes, depending on consumer capacity. Users who expect an immediate result from an action are left wondering whether it worked, so interfaces have to show pending states honestly, and sometimes need to poll or subscribe for completion. Backlogs create their own dangers. A queue that has grown during an outage releases a surge of old messages when the consumers recover, which can overload downstream systems, and stale messages may no longer be meaningful by the time they are processed. Monitoring queue depth and message age is as important as monitoring request latency.

Data consistency and the patterns that help

Because each service owns its data, a business operation that spans several services cannot be a single transaction. Data becomes eventually consistent, with a period during which different services disagree. Established patterns reduce the risk. Idempotent consumers record the identifiers of processed messages so repeated delivery has no further effect. The outbox pattern writes the event to the same database transaction as the state change and publishes it afterwards, which avoids the failure in which a change is saved but the event is lost. Sagas coordinate multi-step operations with compensating actions when a later step fails. Dead-letter queues hold messages that cannot be processed so that they can be examined instead of blocking everything else.

Why it matters

Event-driven design is a powerful tool for building systems that scale and tolerate failure. It rewards teams that accept its trade-offs and design for duplicates, disorder and delay. It punishes those who treat a message queue as a slow function call. The reliable course is to adopt the supporting patterns and observability early, and to keep the number of asynchronous hops no larger than the problem requires.

Asynchronous messaging does not remove failure. It moves it to a place where nobody is watching.

Sources

  1. Pattern: Transactional outbox (microservices.io)