s8sg / branching-in-faas-flow

Super simple branching examples for faas-flow (https://github.com/s8sg/faas-flow)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

branching-in-faas-flow

Super simple examples with dynamic branching in faas-flow

dashboard-view

Getting Started

  1. Deploy Openfaas
  2. Deploy Consul as a statestore, follow : https://github.com/s8sg/faas-flow-consul-statestore or https://learn.hashicorp.com/consul/datacenter-deploy/deployment-guide
  3. Deploy Minio as a datastore, follow : https://docs.min.io/docs/minio-deployment-quickstart-guide.html
  4. Deploy Jaguer Tracing, follow: https://www.jaegertracing.io/docs/1.8/getting-started/
  5. Review your configuration at flow.yml
environment:
  workflow_name: "test-branching"
  gateway: "gateway:8080"
  enable_tracing: true
  trace_server: "jaegertracing:5775"  
  enable_hmac: false
  consul_url: "statestore_consul:8500"
  consul_dc: "dc1"
  s3_url: "minio:9000"
  s3_tls: false
  1. Deploy the flow-function
faas template pull https://github.com/s8sg/faas-flow
faas build
faas deploy
  1. Request the flow
curl http://127.0.0.1:8080/function/test-branching

Tracing Information in Jaguer Tracing
tracing-info

About

Super simple branching examples for faas-flow (https://github.com/s8sg/faas-flow)


Languages

Language:Go 100.0%