eclipse-ee4j / glassfish-shoal

Shoal
Other
5 stars 9 forks source link

optimize virtual broadcast message send #109

Open glassfishrobot opened 14 years ago

glassfishrobot commented 14 years ago

Broadcast that iterates over each active instance and sends over TCP is inefficiently serializing the payload each time it sends to an instance.

When udp broadcast is used, the payload of gms send message is serialized once and then broadcast to all instances in the cluster. Correct this inefficiency since DistributedStateCache and GroupHandle.sendMessage(String targetComponent, bytes[]) serializes the GMSMessage object FOR EACH INSTANCE in cluster.

This change will not impact GMS notifications or heartbeats since they rely on udp broadcast of gms sendMessage.

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by @jfialli

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA SHOAL-109