Tuesday, July 2, 2024

Spring Message Brokers

 In Kafka, how can we consume and produce messages Between services?

  • Kafka consumer and producer configuration Where we provide the topics which we want to consume from and the topics where we want to produce messages to.
  • In This Kafka configuration producer configuration,We can set the bootstrap URL And key serialiser and value serialiser and Use Kafka template.
  • For listener service We can configure the kafka listener Configuration which consumes messages.

No comments:

Post a Comment

Spring Boot

What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...