Giter Site home page Giter Site logo

aggregator's People

Contributors

2tvenom avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

aggregator's Issues

Question / Aggregate data from Github api v3

Hi guys,

Hope you are all well !

I was wondering how I could be triggering some events cascading and async tasks with golang. I found your example and I am trying to connect the dots on the how to do that properly ^^

Use case:

  1. Pitch: I want to manage my starred repository, and actually I use limo, written in go also.
  2. Goal: Extend the update process, by fetching some additional informations from my starred repository like languages, the readme content and the file tree for the latest SHA.
  3. Workflow:
    • Create a parent channel, with a concurrency of 20, like actually in the update.go file from limo, to fetch the list of my starred repo (per page: 100)
      • Fetch the readme (if exists), the git tree and the detected languages for each of them
      • Maybe 2 or 3 conditional requests per repository (eg. they have a wiki or more documents like additional markdowns)
  4. Bottleneck:
    - How to configure this task of parallel and waterfall requests ?
    - How can I control that some missing readme, or some api requests errors won't break the integrity of my task-flow ?
    - What would describe the best my problem ?
    - Is it a much more a flow based programming (fbp) problem ?
    - Can I just use async commands by defining the flow within a simple yaml config ?

In fact, I would like to find or understand the easier approach to aggregate these data and not having un-optimized use of my goroutines.

More simply:
How can I re-use your example for such purpose ?

Cheers,
Richard

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.