spring cloud stream multi api version
A single spring cloud stream application,
have to send out the same data via 2 major versions of the same api.
spring: stream: bindings: myApiV1-out-0: destination: api/v1/the/topic myApiV2-out-0: destination: api/v2/the/topic
What is the most elegant solution for this problem?
Idea / what i want to:
My application should send to a generic binding using the stream bridge.
This binding should consume my internal model and
- convert it to api mode V1 and send out via myApiV1-out-0
- convert it to api mode V2 and send out via myApiV2-out-0
Is this what i have to implement by my own or is there some kind of pattern?