KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb Insights How to apply rate limit with .qsp.read.fromHTTP

  • How to apply rate limit with .qsp.read.fromHTTP

    Posted by sidpatel on December 1, 2023 at 12:00 am

    I saw this reader, .qsp.read.fromHTTP, is a more convenient way to implement an API call request to get data instead of a timer and callback. But what if the API has a rate limit, how do you abide by that? I know its related to OnResponse option, but not sure how to use that to trigger next request periodically after x amount of time, say 30 seconds or 1 hour. I simply want to make the API request to get data periodically.

    Thanks

    sidpatel replied 8 months, 3 weeks ago 2 Members · 2 Replies
  • 2 Replies
  • sdempsey

    Member
    December 8, 2023 at 12:00 am

    There isn’t a supported, easy way to do this unfortunately. The reader currently issues a single request as opposed to polling. It’s a great suggestion though and something we are considering. I’ve raised an idea to our product team to suggest the enhancement.

  • sidpatel

    Member
    December 9, 2023 at 12:00 am

    Appreciate the action. In the meantime, I will try to use the callback/timer method instead.

Log in to reply.