Your Event-Driven Architecture Is Running Fine... Until It Isn't

https://hackernoon.imgix.net/images/ozm7BFplXkVpzbAiKzmJuZu1p7u2-wt03oum.png

Event-Driven Architecture (EDA) is used in distributed systems to loosely couple applications. Instead of applications communicating directly with each other, they connect to a message broker and publish or consume events independently.

However, loose coupling introduces a challenge that is often overlooked:

How do you know your business process is actually working?

The Monitoring Gap in EDA

In a traditional point-to-point design, the publisher can trigger an alert

· if it cannot connect to the subscriber or

· if the consumer does not acknowledge the request.

The communication path is direct, so failures are usually visible.

EDA works differently.

Applications connect to the message bus, not directly to each other, and the application disconnections are also normal scenarios, and the broker will store messages in the queue, so no messages are lost.

From the broker's perspective, everything is operating as designed.

The problem is that the business process may already...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more