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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -