Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.0-alpha
-
None
-
None
Description
AddressUtil#getLocalHostExactAddress might slow the query because of multiple local ip acquisitions in org.springframework.cloud.commons.util.InetUtils#findFirstNonLoopbackHostInfo.
Fix Design
Add cache of LOCAL_IP_ADDRESS. Thus, the cache is updated when calling AddressUtil#getLocalHostExactAddress at the first time, then the cache can be used afterwards.