2

My Requirement in completely same as what is described here There are producer issues with spring cloud stream 3.0 by @hero-zh

I found that @Oleg Zhurakousky is suggesting to use StremBridge but when i looked into the class there is @SuppressWarnings("deprecation") added at class level. Which means this class is soon going to be deprecated.

I am looking for an alternative of StreamBridge which i can use.

nitin737
  • 39
  • 8

1 Answers1

2

No, @SuppressWarnings means that we just wanted to suppress warnings since StreamBridge itself is using some of the deprecated components. StreamBridge itself is not deprecated and in fact is a new component meant to replace deprecated components. So please feel safe to use it.

Oleg Zhurakousky
  • 5,820
  • 16
  • 17
  • Thanks Oleg, I have implemented the streamBridge as an alternative and it worked. – nitin737 Jun 09 '22 at 16:54
  • Hi @nitin737 Could you please help me with a sample code, I am trying to make the StreamBridge work. The StreamBridge is not reading the producer configuration. Thank you in advance – nafi Aug 30 '22 at 21:51
  • 1
    Hi @nafi , Please follow this medium post https://nitin737.medium.com/publish-kafka-events-using-streambridge-in-spring-boot-alternative-to-messagechannelfactory-1bacc2075bca i have put the code required here. This is a working code i can share the github link also if you need. – nitin737 Aug 31 '22 at 07:45