Giter Site home page Giter Site logo

simple_map_reduce's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar serihiro avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simple_map_reduce's Issues

Manage tasks at JobTracker

Abstract

  • The latest version of this does not store tasks at JobTracker.
  • Task management is necessary so that the users can find their job is finished.

Inject context object into each models

Current

  • All methods to control models (save, change transition, etc.) are implemented at out of Model class
  • So there are many similar code snippets like this
          response = http_client(SimpleMapReduce.job_tracker_url).put do |request|
            request.url("/workers/#{map_worker_id}")
            request.body = { event: 'ready' }.to_json
          end
  • I can also introduce API Client Class. But in JobTracker class, the model control is executed not via API access but via just calling transition method of each models (provided by aasm).
  • I want to control models via same interface

I'd like to do this

  • Create Context classes
  • Inject a context into model object
  • Context classes provide same interface to control models and they concealment the implementation to control the model.

Introduce status polling from JobTracker

Abstract

  • Modify worker status check style.
  • In 0.1.0, JobWorker tells its status to JobTracker
  • But this style is complicated and uncertain.
    • e.g. If a JobWorker is down in processing job, JobTracker keeps wrong status of the JobWorker.
  • So introduce polling style from JobTracker to JobWorker.

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.