Project: springxd
Issue XD-1416: When there are no wiretap listeners don't publish messages
Being able to listen to a stream at any point has a significant performance impact. The reason for the impact is the message needs to be "serialized + transported + deserialized" to other members even if there is no one listening. This "serialized + transported + deserialized" processes happens for each step in a flow - source | process | sink. Recommend creating some kind of protocol for wiretaps that allows members to know if there is someone listening in the grid so they will emit the data. Likewise we need to deregister the listener if the wiretap is deleted.
Story points: 8