L
L
Lovelet2018-12-25 19:31:45
.NET
Lovelet, 2018-12-25 19:31:45

Is the use of message queues and an architecture with an event model justified?

There is a service that accepts REST requests for some data samples. Changing and adding data is also carried out through it. It is necessary to notify the services that subscribe to this about the data change.
I thought about the architecture Data service -> Subscription manager (receives events and distributes messages to queues, also stores who subscribed to an event) -> Message queues -> Subscribers.
How do you think, is such an architecture justified? Maybe there is some well-known design pattern that did not see that it describes a similar task?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ApeCoder, 2018-12-25
@ApeCoder

Described in Fowler's book, for example
https://www.enterpriseintegrationpatterns.com/patt...

A
Alexander Yudakov, 2018-12-25
@AlexanderYudakov

I regularly use a similar design. A couple of points:
1. I never use external universal message queues (MSMQ etc). Instead, an easy, simple, customized solution for each specific case.
2. I always integrate into a single whole what you call "data service", "subscription manager" and "message queues".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question