This is the current approach suggested in the docs for producers in foreign event driven applications:
@Autowired
StreamBridge streamBridge;
....
bridge.send("binding1" , message);
bridge.send("binding2" , message);
The previous approach using EnableBinding
looked like:
MessageChannel binding1();
MessageChannel binding2();
...
binding1.send(message);
binding2.send(message);
My question is if there's any performance overhead and if there's any difference between the two approaches in terms of message throughput or polling?