Preparing the pub/sub structure

In software architecture, publish-subscribe or pub/sub is a messaging pattern where message senders, called publishers, do not program messages to be sent directly for specific receivers, called subscribers, but categorize messages published in classes without knowledge of which subscribers wish to receive the messages. Likewise, subscribers express interest in one or more classes and only receive messages that are of interest, without knowing which publishers they have submitted.

The pub/sub messaging pattern is one of the best fits, if not the best, for the asynchronous messaging design pattern.

Let's change the NewOrchestrator microservice a bit to send the messages to the RecommendationService microservice ...

Get Microservice Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.