Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ITopic.publish should not serialize if there are no subscribers #8262
Class com.hazelcast.topic.impl.TopicProxy#publish serializes the message even if the message is never sent due to no subscribers. This is very inefficient at scale. For example, a producer periodically publishing on 100 topics of which typically only 10 have subscribers.
In the case of non-global-ordering and non-client use, the implementation should defer serialization until it has established that there are subscribers.