Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is the difference between event driven architecture and message driven architecture in The Reactive Manifesto?

I read the Reactive Manifesto .

But I could not understand the core differences between event driven architectures and message driven architectures. And as a result, I also could not understand the exact reason behind why the reactive manifesto prefers Message Driven systems instead of the Event Driven one.

I also had a look at this interview, where Martin Thompson discusses the reactive manifesto.

But still, I could not clearly distinguish between these two architectures, their advantages and use cases.

like image 640
oblivion Avatar asked Jun 07 '16 15:06

oblivion


People also ask

What is the difference between event-driven and message driven?

Events are messages As discussed above, in Message Driven systems, each component send items to a fixed recipient. In Event Driven systems, on the other hand, each component produces items of data with a fixed sender and shares them with any consumer.

What is the difference between event and message?

The difference between events and messages is that events are used for intra-stack communication, whereas messages are used for inter-stack communication.

What is reactive event-driven architecture?

Reactive architecture is an architecture approach aims to use asynchronous messaging or event driven architecture to build Responsive, Resilient and Elastic systems.

What is the difference between a request driven and event-driven software architecture?

In request-response architecture, an application's components communicate via API calls. The client sends a request and expects a response before performing the next task. In event-driven architecture, the client generates an event and can immediately move on to its next task.


1 Answers

Without sharing the view, I try to explain the claim:

An event implies a certain semantic, while a message is more about syntax. Thus a message may contain an event, but also something else (e.g., an error statement).

By focusing on the mechanism message, a better decoupling can be gained, since the semantic can be re-interpreted.

like image 200
Matthias Avatar answered Sep 26 '22 04:09

Matthias