The purpose of the Publish/Subscribe pattern is the same as the Observer pattern: you want to notify other services when certain events take place. But there is an important difference between the Observer and Pub/Sub patterns. In the observer pattern, the broadcast is performed directly from the observable to the observers, so they "know" each other. But when using a Pub/Sub pattern, there is a third component, called broker, or message broker or event bus, which is known by both the publisher and subscriber. Therefore, when using the Pub/Sub pattern the publisher and the subscribers are precisely decoupled thanks to the mentioned event bus or message broker.
C#, WPF, ASP.Net core | Api Versioning |Content Negotiation | Rate limiting |Middleware | Dependency injection | Routing | .Net core | Filters
Subscribe to:
Post Comments (Atom)
C# Record type: Something to remember while using record types
Record in c# provide a concise and expressive way to create immutable data types, record is a keyword in c#, we can use this keyword with ...
-
We can not declare Async method in interface or it's not needed as Async is code marker for compiler it has no relation with overridi...
-
How To Set Focus on another window (MVVM)? I have two window (Parent-Child). Parent window opens Child window so child window is focuse...
-
Difference between ContentControl and ContentPresenter? ContentPresenter is a lightweight element. It's derived from FrameworkElem...
No comments:
Post a Comment