Coder Social home page Coder Social logo

Rate Limiting about duffel-api-javascript HOT 4 CLOSED

duffelhq avatar duffelhq commented on June 13, 2024
Rate Limiting

from duffel-api-javascript.

Comments (4)

igorp1 avatar igorp1 commented on June 13, 2024

Hi @kevin-induro, thank you for the feedback :) I'd be curious to learn more about your setup and your need for that bit of data -- what are you doing that requires you to handle a large batch of requests?

With that said, there are no plans currently expose the headers through our SDK -- but, I did share your feedback with our product team and they've made note of it. Since the rate limit doesn't change, have you considered for your requests to stay within an acceptable rate by introducing some wait times or doing the work in batches?

from duffel-api-javascript.

kevin-induro avatar kevin-induro commented on June 13, 2024

Yep, that's the workaround we have today. The API noted that these parameters could change, so I thought it safest to abide by the headers rather than rely on the rate limit mentioned. Also, I actually couldn't find the quantity. The frequency was clearly per sixty seconds, but my guess is a quantity of 60 requests in that time period, but only because that was the number in the example.

It's not that we're hitting the rate limit yet in production, but we can see when it could happen and can force it in development/testing. We have a service providing aggregated quotes for groups of people from various locations. For example, if I'm tracking a hundred people, that can hit the limit.

from duffel-api-javascript.

igorp1 avatar igorp1 commented on June 13, 2024

Very good points @kevin-induro, thank you for taking the time to share that. You are right, the rate limit is not documented and that response header is the most reliable way get that information. Starting on version 1.17.0 (checkout changes here), you'll be able to get headers with every success and error returns from client calls.

We have a service providing aggregated quotes for groups of people from various locations

Very interesting use case! I'm curious to learn more. If you or your team need any more help or guidance to keep the momentum on moving forward with your integration please don't hesitate to reach out!

from duffel-api-javascript.

kevin-induro avatar kevin-induro commented on June 13, 2024

That sounds great! That's amazing turnaround you have there.

I'll certainly keep reaching out in mind.

from duffel-api-javascript.

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.