Coder Social home page Coder Social logo

Caching responses about whoisit HOT 5 CLOSED

mzpqnxow avatar mzpqnxow commented on August 24, 2024
Caching responses

from whoisit.

Comments (5)

meeb avatar meeb commented on August 24, 2024 1

Heh, I'm very open to adding useful features, less so to bloat 😀

Most of project maintenance after the core is built is offering support and saying no to stuff.

from whoisit.

meeb avatar meeb commented on August 24, 2024

Hi, thanks for the issue. I can see why you might want this but typically this sort of caching would be handled within your application directly (stuffing responses from whoisit into redis with a 24 hour key expiry or similar). Is there an implementation reason that this would make more sense to handle in the query library itself?

As far as I'm aware RDAP servers do not have cache control headers at all, there may be some that do implement them but I've never encountered any. I'm not sure they would make much sense for a query API to implement so I would suspect no endpoints have them. The RDAP RFC doesn't discuss caching other than cache busting to work around poorly implemented MITM proxies.

In-memory caching of Python data structures, if you're making tens of thousands of queries, is going to get pretty massive without offloading it to disk or memcached / redis etc. as well.

from whoisit.

mzpqnxow avatar mzpqnxow commented on August 24, 2024

Hi, thanks for the issue. I can see why you might want this but typically this sort of caching would be handled within your application directly (stuffing responses from whoisit into redis with a 24 hour key expiry or similar). Is there an implementation reason that this would make more sense to handle in the query library itself?

As far as I'm aware RDAP servers do not have cache control headers at all, there may be some that do implement them but I've never encountered any. I'm not sure they would make much sense for a query API to implement so I would suspect no endpoints have them. The RDAP RFC doesn't discuss caching other than cache busting to work around poorly implemented MITM proxies.

In-memory caching of Python data structures, if you're making tens of thousands of queries, is going to get pretty massive without offloading it to disk or memcached / redis etc. as well.

Fair enough! Can't day I disagree much with your points, appreciate the detailed explanation

I'll close this

Thanks again

from whoisit.

meeb avatar meeb commented on August 24, 2024

No problem, feel free to open issues if you want to discuss features in the future.

from whoisit.

mzpqnxow avatar mzpqnxow commented on August 24, 2024

Hi, thanks for the issue. I can see why you might want this but typically this sort of caching would be handled within your application directly (stuffing responses from whoisit into redis with a 24 hour key expiry or similar). Is there an implementation reason that this would make more sense to handle in the query library itself?

Yes, the reason is deeply technical, you see- I would prefer you maintain it rather than me 😊

^-- joking, sort of.. but when you ask directly like that and I have to think about it, I see that may be the honest answer...

from whoisit.

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.