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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -