Variations & Experiments
In this lesson, we'll look at some variations to the approach that we've learned in this chapter and some experiments you can do based on them.
We'll cover the following...
Recipe variations #
The example sends the data for the event along in the records. There are alternatives to this (see Example):
-
The entire dataset is always sent along, in this example that means the complete order.
-
The records could contain only an ID of the dataset for the order. As a result, the recipient can retrieve just the information about the dataset it really needs.
-
An individual topic exists for each client. All the records have their own data structure adapted to the client.
Other MOMs #
An alternative to Kafka would be another MOM. This might be a good idea if the team has experience with a different MOM. Kafka differs from other MOMs in the long-term storing of records.
However, this is relevant only for event sourcing. And even ...