Search⌘ K

Variations & Experiments

Explore Kafka messaging variations and experiment with asynchronous communication in microservices. Learn to implement Kafka consumers, Dockerize services, scale instances, and integrate with frontend and load balancing. Understand different data handling approaches and extend microservices with practical exercises.

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 then, every microservice can ...