Git Product home page Git Product logo

Comments (3)

nijikokun avatar nijikokun commented on September 24, 2024

Adding another precaution since reloading the application while rate limited was very destructive previously:

image

Note this screen will only show if you close the app and re-open while rate-limited, it also does a count-down so you get a visual cue of how many seconds are left.

from currency-cop.

nijikokun avatar nijikokun commented on September 24, 2024

So what happens in beta.9 when you encounter a rate limit?

  • Data is returned as empty to the requester.
  • Requester sees this, caches it, a portfolio report is built with empty data.
  • Reloading while rate-limited causes the application to think you have no tabs
    • This makes it unable to update portfolios
    • Portfolios also zero value out because you are still rate limited.

What will happen in the next release?

  • A status report is thrown to the requester
    • Requester debounces the queue based on the timeout interval
    • When it requests again, if it gets another rate-limit it does the debounce again until requests 200 again.
  • When you reload and you are rate-limited
    • Before making requests to obtain application data, the application checks your status
      • If you are rate-limited, you see the screen #63 (comment)
      • Timeout period is based on how many requests you have attempted, maximum is 4 minutes, minimum is 1 minute periods. These are enforced by GGG. Not me.

from currency-cop.

nijikokun avatar nijikokun commented on September 24, 2024

Fixes can be found in https://github.com/currency-cop/currency-cop/releases/tag/2.0.0-beta.10

from currency-cop.

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.