3 ms·
But I was under the impression that the point of message brokering is that it doesn't have to be service A that puts it there; only that some service puts the m
by i_cant_speel 9y ago
But I was under the impression that the point of message brokering is that it doesn't have to be service A that puts it there; only that some service puts the message there.
I feel like the article is attacking message brokering by discussing the disadvantages of bad use cases for them. A good use case for message brokers is when work needs to be done on an item, but not immediately.
My company uses them in a way I believe is quite effective. We pull in data from an external source, and send the ID of the item to about five different queues to do different tasks. Each time one of the queues finishes the work, it send a message to a validator that checks to see if all the work is done. If it isn't, it waits to get that message again from another worker. If it is, it marks that item as ready for the end user.
These are the kinds of use cases I think message brokers should be used for. Not to send a message and wait to get an answer back. Why not just use an HTTP request for that?
- hvidgaard 9y ago> But I was under the impression that the point of message brokering is that it doesn't have to be service A that puts it there; only that some service puts the message there. It doesn't matter, but it's more about debugging. If Service A does not work correctly, where is the bug? Is i Service A? Service B? The network? The use at your company, is idiomatic to the paradigm. You have n different units of work, that can run seperately, so you do that and communicate with messages.
- i_cant_speel 9y agoIf you are using messages correctly, it shouldn't be difficult to debug. You have an input and output for each service and you see where something happens differently than expected. I'm not sure where you are saying the difficulty comes from.