Mark As Completed Discussion

Event-Driven Architecture Models

Generally, event-driven architecture is based on either a Pub/Sub model or an event stream model. This article will discuss the Pub/Sub model.

What is Pub/Sub?

Pub/Sub, which stands for Publisher/Subscriber, is a messaging architecture based on event stream subscriptions that allow applications and services to share event data. In terms of the Publishers-to-Subscribers relationship, it is a software design that sends an email to those who need to be notified when an event occurs or is published. The data that is shared can be anything from strings to complex objects representing text, sensor data, audio, video, or other digital content.

Event-Driven Architecture Models

There are three basic terms that define the Pub/Sub messaging architecture:

  1. Topic: A topic is a shared string that lets apps communicate with one another over a common thread.

  2. Publishers: Publishers transmit the messages. They are unaware of the information's destination.

  3. Subscribers: Subscribers receive messages. They have no idea where the information comes from. Subscribers will only receive information with themes that they have already agreed to receive.