Giter VIP home page Giter VIP logo

Comments (3)

renatomariscal avatar renatomariscal commented on July 23, 2024

@sarthakgithub I am not an expert, but it sounds to be working correctly from your description.

The lookup event means an actual DNS enquire is performed, so looking at the timing of those won't give you an average reduction unless the DNS server is overwhelmed.

It should give you a great reduction on the count of those, as they are just not performed, which sounds to be confirmed by your "'lookup' event is not getting fired".

Am I missing something?

from cacheable-lookup.

szmarczak avatar szmarczak commented on July 23, 2024

https://runkit.com/szmarczak/6216f010c015ea00080b7dbe

[some big number]
0 [or 1]

As you can see it takes some time to get the first response, but the next one is cached. lookup is getting fired but much faster than usually.

https://runkit.com/szmarczak/6216f103768a8c000a2d21a2

Try uncommenting the install call. As you can see, without that - it takes ~15ms as it performs another DNS call. With that included - there's no wait.

from cacheable-lookup.

szmarczak avatar szmarczak commented on July 23, 2024

@sarthakgithub Unless you provide more details on your issue, I see no problem here.

from cacheable-lookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.