Coder Social home page Coder Social logo

lei1024 / rill-flow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weibocom/rill-flow

0.0 0.0 0.0 16.01 MB

Home Page: https://rill-flow.github.io

License: Apache License 2.0

Shell 0.02% JavaScript 1.28% Python 0.12% Java 35.73% Lua 0.24% Groovy 8.90% TypeScript 28.22% CSS 0.43% HTML 0.12% Vue 22.99% Dockerfile 0.07% Less 1.73% SCSS 0.13%

rill-flow's Introduction

Rill Flow

License codecov CN doc

Overview

Rill Flow is a high-performance, scalable distributed workflow orchestration service with the following core features:

  • High performance: Supports the execution of tens of millions of tasks per day, with task execution latency less than 100ms
  • Distributed: Supports the orchestration and scheduling of heterogeneous distributed systems
  • Ease to use: supports visual process orchestration and plug-in access
  • Cloud native: Supports cloud native container deployment and cloud native function orchestration
  • AIGC: supports rapid integration of LLM model services

QuickStart

Environment Preparation

Before you begin, ensure that the following tools are installed:

Service Deployment

Install Rill Flow services on your local environment using Docker-Compose:

cat << EOF > docker-compose.yaml
version: '3'
services:
  rill-flow:
    image: weibocom/rill-flow
    depends_on:
      - cache
      - jaeger
    ports:
      - "8080:8080"
    environment:
      - RILL_FLOW_DESCRIPTOR_REDIS_HOST=cache
      - RILL_FLOW_DEFAULT_REDIS_HOST=cache
      - RILL_FLOW_TRACE_ENDPOINT=http://jaeger:4317
      - RILL_FLOW_CALLBACK_URL=http://rill-flow:8080/flow/finish.json
      - RILL_FLOW_TRACE_QUERY_HOST=http://jaeger:16686
  cache:
    image: redis:6.2-alpine
    restart: always
    command: redis-server --save 20 1 --loglevel warning
  jaeger:
    image: jaegertracing/all-in-one:1.39
    restart: always
    environment:
      - COLLECTOR_OTLP_ENABLED=true
  ui:
    image: weibocom/rill-flow-ui
    ports:
      - "8088:80"
    depends_on:
      - rill-flow
      - jaeger
    environment:
      - BACKEND_SERVER=http://rill-flow:8080
  sample-executor:
    image: weibocom/rill-flow-sample:sample-executor 
EOF
docker-compose up -d

Execution Example

  • Step 1: Submit a YAML file defining a workflow
curl --location  --request POST 'http://127.0.0.1:8080/flow/bg/manage/descriptor/add_descriptor.json?business_id=rillFlowSimple&feature_name=greet&alias=release' \
--header 'Content-Type: text/plain' \
--data-raw '---
version: 1.0.0
workspace: rillFlowSimple
dagName: greet
type: flow
tasks:
  - category: function
    name: Bob 
    resourceName: http://sample-executor:8000/greet.json?user=Bob
    pattern: task_sync
    tolerance: false
    next: Alice
    inputMappings:
      - source: "$.context.Bob"
        target: "$.input.Bob"
  - category: function
    name: Alice 
    resourceName: http://sample-executor:8000/greet.json?user=Alice
    pattern: task_sync
    tolerance: false
    inputMappings:
      - source: "$.context.Alice"
        target: "$.input.Alice"
'
  • Step 2: Submit a task to execute the workflow
curl -X POST 'http://127.0.0.1:8080/flow/submit.json?descriptor_id=rillFlowSimple:greet'  -d '{"Bob":"Hello, I am Bob!", "Alice": "Hi, I am Alice"}' -H 'Content-Type:application/json'
  • Step 3:Query the task execution results

    Query the execution details via the Rill Flow UI.(admin/admin)

http://127.0.0.1:8088/#/flow-instance/list

preview

Document

Contributors

The following are contributors to the project along with their GitHub links:

License

Rill Flow is an open-source project under the Apache License 2.0.

rill-flow's People

Contributors

actions-user avatar qdaxb avatar ch15084 avatar feifei325 avatar techloghub avatar qiaofenlin avatar

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.