Giter Club home page Giter Club logo

Comments (2)

ponces avatar ponces commented on May 18, 2024 1

Makes sense!
However, each website has its own API, so Manager would need to be API agnostic.
In the future, we can think of a way to make this possible somehow. Not a priority for now, though...
Thank you!!

from revanced-manager.

alexandreteles avatar alexandreteles commented on May 18, 2024

Makes sense! However, each website has its own API, so Manager would need to be API agnostic. In the future, we can think of a way to make this possible somehow. Not a priority for now, though... Thank you!!

A possibility would be for the API to source data directly from Git. I thought about it for the current implementation, but there's a couple complications for that approach:

  1. We would have to hold a copy of each git repository from which we source data (space constraints)
  2. The transformed data would need to be cached for each one of those sources, resulting in a gigantic cache (memory constraints)
  3. Considering that right now we're hitting over 250K reqs/day, those costly operations would pile up in execution time (CPU constraints)

Another possibility would be to force repositories to implement and follow some standards like adding a CONTRIBUTORS file from which we can source the data for the /contributors endpoint or maintaining the patches.json file up to date with their changes so we can pull data for the /patches endpoint from there.

At the end of the day, none of those solutions are good enough given the circumstances. If you have any idea or suggestion on how can we treat this problem, please share with us.

from revanced-manager.

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.