GithubHelp home page GithubHelp logo

fluvial's Introduction

Fluvial

What's Fluvial for?

This is a framework for dealing with jobs. Assign available performer for specific job automatically. A very typical use case is to make robots process tasks. Job can be in a complex data structure, currently tree data structure, which means each job could have its own sub jobs.

What Fluvial has done for you?

  1. Easy way to generate job instance with defined hierarchy.
  2. Scheduler to handle each job.
  3. Allocator to decide how to assign performer for the job.
  4. Storage support to dealing with optimistic/pessimistic lock, transaction, so the database would always be sync between scheduler and user operation.
  5. Communication support for tcp / websocket.
  6. Implement the goal mechanism, so each job would continue execute until it meets all goals.
  7. The way to control different performers during different jobs' states.

What you need to do if using Fluvial?

  1. Install Fluvial and setup a spring boot project.
  2. Extends Job to have your own specific jobs, and override function in jobs, like execute(), stop(), etc, so job know what to do at each case.
  3. Extends JobStorage/PerformerStorage if you have extra info what to save in database.
  4. Extends JobStorageAdapter/PerformerStorageAdapter if you what extra way to query your database.
  5. Extends Performer to declare and implement what your performer can do.
  6. Implement commands so you use to command your performer.
  7. Write your own controllers response to specific requests.

You can take a glimpse on our sample.

fluvial's People

Contributors

moonttmm avatar

Stargazers

xiazhituo avatar ChampionRoy avatar  avatar

Watchers

James Cloos avatar  avatar ChampionRoy avatar

Forkers

championroy

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.