dns - Redis connection via domain name instead of IP: speed? -
i unable find existing answers on topic.
i running redis client connects remote redis server (not on same host).
i can connect either via domain name or via server's ip, i.e. can launch client either via redis-cli -h 123.123.123.123
or redis-cli -h my.domain.com
. more convenient use domain name.
speed important use case, therefore know whether "costly" dns lookup happens once @ startup or multiple times throughout life of client.
thanks!
the overhead paid when connection established.
if make sure application keeping permanent connections redis instances instead of systematically connecting/disconnecting, overhead negligible.
Comments
Post a Comment