Skip to main content
Open

Cache HTTPCaller DNS Lookup result

Related products:Transformers

cfvonner
Supporter

We're increasing usage of HTTPCaller to interact with on-premise enterprise system APIs (mainly Cityworks). In reviewing some of the job logs for Automations that contain HTTPCaller transformers, I notice repeated messages like this:

HTTP transfer summary - status code: 200, download size: '1061 bytes', DNS lookup time: '2.5e-5 seconds', total transfer time: '0.135342 seconds'

While that lookup time is marginal (0.000025 seconds), in a workspace where 10K or more features pass through, it adds a bit of overhead and seems to make redundant DNS lookups (I can't think of a situation at the moment where the HTTPCaller will hit different servers in the same flow of data). Would it be possible to cache the DNS lookup when the first feature passes through and just use the cached value for subsequent features? Or if for some reason there would be switching of servers, cache the unique servers DNS results and use them as appropriate?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings