Git Product home page Git Product logo

old-argo-dataflow's Introduction

Dataflow

NOTICE

Argo Dataflow has been reimplemented in the scope of a broader project focussed on real-time data processing and analytics. Please checkout the new numaflow project.

Summary

Dataflow is a Kubernetes-native platform for executing large parallel data-processing pipelines.

Each pipeline is specified as a Kubernetes custom resource which consists of one or more steps which source and sink messages from data sources such Kafka, NATS Streaming, or HTTP services.

Each step runs zero or more pods, and can scale horizontally using HPA or based on queue length using built-in scaling rules. Steps can be scaled-to-zero, in which case they periodically briefly scale-to-one to measure queue length so they can scale a back up.

Learn more about features.

Introduction to Dataflow

Use Cases

  • Real-time "click" analytics
  • Anomaly detection
  • Fraud detection
  • Operational (including IoT) analytics

Screenshot

Screenshot

Example

pip install git+https://github.com/argoproj-labs/argo-dataflow#subdirectory=dsls/python
from argo_dataflow import cron, pipeline

if __name__ == '__main__':
    (pipeline('hello')
     .namespace('argo-dataflow-system')
     .step(
        (cron('*/3 * * * * *')
         .cat()
         .log())
    )
     .run())

Documentation

Read in order:

Beginner:

Intermediate:

Advanced

Architecture Diagram

Architecture

old-argo-dataflow's People

Contributors

ab93 avatar alexec avatar blkperl avatar dependabot[bot] avatar domderen avatar dseapy avatar edlee2121 avatar github-actions[bot] avatar krise86 avatar marviniter avatar sarabala1979 avatar squat avatar terrytangyuan avatar udit107710 avatar vigith avatar wanghong230 avatar whynowy avatar zewelor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

old-argo-dataflow's Issues

Kubernetes event source

It might be useful to directly consume Kubernetes events as a source, saving any need to write any code.

sources:
- name: events 
  kubernetesEvents:
    namespace: All

Custom metrics

Pipelines will want to report custom metrics. These would be emitted by Prometheus and sent to Wavefront.

Pod-affinity

As a user I may want to use affinity to determine where pods run.

suspend pipeline

add the ability to suspend and resume a pipeline

suspend would just be scale-to-zero

Custom health check

I think I'd like to be able to write a custom health check for a pipeline. For example, if a certain percentage of errors occurred, it should be marked as "status.phase=Error".

Implement stdin/stdout connectors

We need to use something similar to Emissary pattern to do this:

  • Init container copies binary to volume.
  • Controller update main container command.

Rollout/restart

It should be possible to have each step in the pipeline be restarted, much like kubectl rollout restart deploy/my-deploy

Should we have a CLI?

Not for MVP I think. Lets get it working naturally with kubectl. Then maybe a kubectl plugin?

Pipeline logs

Should be similar to how we do this for events. Hopefully re-use code.

CSV source

It might be good to source a CSV (e.g. from Git) and run a step for each row.

Errors

What options do we need around error handling? What happens when a message cannot be sent or received from a bus?

Bucket contents source/sink

It might be useful to be able to source or sink data from/to buckets (e.g. S3)

sources:
- s3: 
    bucket: my-bucket
    filename: *.log

Each item in the bucket is a single data item. Any new items appear, these are automatically found and sent.

Sinks are a bit simpler, but we need to determine the filename:

sinks:
- s3: 
    bucket: my-bucket
    filename: meta.filename // an expression from the message context? just a random GUID?

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.