-
Enhancement
-
Resolution: Duplicate
-
Major
-
None
-
11.0.0.Final
-
None
Serialization of an AddressableNode requires an additional 7 or 19 bytes (depending on whether the corresponding bind address is IPv4 or IPv6) as well as the logical name as a UTF-8 string; all on top of the 16 bytes required to serialize the JGroups/Infinispan address.
In most cases, this is completely unnecessary, as the Node can always be recreated from the address via a NodeFactory<Address>.
Known offenders are:
- org.wildfly.clustering.server.registry.CacheRegistry which stores the Node as a cache key.
- org.wildfly.clustering.server.provider.CacheServiceProviderRegistry which stores a Set<Node> as a cache value.