Hello!
I wanna write (spring) kafka producers generator. Our services use a lot of this stuff and I feel it dumb to copy-paste the same beans million times.
but I can't invent the flawless solution(((
my last idea was to write in config pairs "topic to className". but what to do if one dto should be sent to one of multiple possible topics (multiple topics accept the same dto but some logic defines which one to choose)?..
have somebody seen some idea description (article or post or anything else)?
not kotlin but kotlin colored 1