Skip to content

Commit

Permalink
app instance is now a topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Gorzala committed Dec 27, 2023
1 parent 80225fe commit dfe0889
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
public class TopicConfiguration {
@Bean
public KafkaAdmin.NewTopics createTopics() {
NewTopic profileUpdated = new NewTopic("profile-updated", 1, (short) 1)
return new KafkaAdmin.NewTopics(profileUpdated);
NewTopic profileUpdated = new NewTopic("profile-updated", 1, (short) 1);
NewTopic appInstanceIdCreated = new NewTopic("app-instance-id-created", 1, (short) 1);

return new KafkaAdmin.NewTopics(profileUpdated, appInstanceIdCreated);
}

}

0 comments on commit dfe0889

Please sign in to comment.