All Projects → ExpediaGroup → Flyte

ExpediaGroup / Flyte

Licence: apache-2.0
Flyte binds together the tools you use into easily defined, automated workflows

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Flyte

St2
StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, security responses, troubleshooting, deployments, and more. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html. Questions? https://…
Stars: ✭ 4,600 (+6765.67%)
Mutual labels:  automation, workflows, ifttt, chatops
Odin
A programmable, observable and distributed job orchestration system.
Stars: ✭ 405 (+504.48%)
Mutual labels:  automation, workflow-engine, workflows
Slash Command Dispatch
A GitHub action that facilitates "ChatOps" by creating repository dispatch events for slash commands
Stars: ✭ 231 (+244.78%)
Mutual labels:  automation, chatops
postier
Postier is a Laravel API automation platform to transfer data and to sync apps. You can build workflows with data and actions of multiple apps and apply logics to the data!
Stars: ✭ 55 (-17.91%)
Mutual labels:  workflow-engine, workflows
nactivity
workflow engine activity activiti
Stars: ✭ 55 (-17.91%)
Mutual labels:  workflow-engine, workflows
Faas Flow
Function Composition for OpenFaaS
Stars: ✭ 172 (+156.72%)
Mutual labels:  automation, workflow-engine
Homeassistant Config
Stars: ✭ 211 (+214.93%)
Mutual labels:  automation, ifttt
workflows
Bioinformatics workflows developed for and used on the St. Jude Cloud project.
Stars: ✭ 16 (-76.12%)
Mutual labels:  workflow-engine, workflows
Aiida Core
The official repository for the AiiDA code
Stars: ✭ 238 (+255.22%)
Mutual labels:  workflow-engine, workflows
Beehive
A flexible event/agent & automation system with lots of bees 🐝
Stars: ✭ 5,348 (+7882.09%)
Mutual labels:  automation, ifttt
Pipedream
Connect APIs, remarkably fast. Free for developers.
Stars: ✭ 2,068 (+2986.57%)
Mutual labels:  automation, workflows
River Admin
🚀 A shiny admin interface for django-river built with DRF, Vue & Vuetify
Stars: ✭ 55 (-17.91%)
Mutual labels:  workflow-engine, workflows
Flow core
FlowCore is a Rails engine to help you build your automation or business process application.
Stars: ✭ 120 (+79.1%)
Mutual labels:  automation, workflow-engine
Errbot
Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
Stars: ✭ 2,605 (+3788.06%)
Mutual labels:  automation, chatops
Server
The Prefect API and backend
Stars: ✭ 87 (+29.85%)
Mutual labels:  automation, workflow-engine
steep
⤴️ Steep Workflow Management System – Run scientific workflows in the Cloud
Stars: ✭ 30 (-55.22%)
Mutual labels:  workflow-engine, workflows
Temporal
Temporal service
Stars: ✭ 3,212 (+4694.03%)
Mutual labels:  workflow-engine, workflows
Realtime
Listen to your to PostgreSQL database in realtime via websockets. Built with Elixir.
Stars: ✭ 4,278 (+6285.07%)
Mutual labels:  workflow-engine, workflows
Utask
µTask is an automation engine that models and executes business processes declared in yaml. ✏️📋
Stars: ✭ 374 (+458.21%)
Mutual labels:  automation, workflow-engine
Prefect
The easiest way to automate your data
Stars: ✭ 7,956 (+11774.63%)
Mutual labels:  automation, workflow-engine

Build Status Docker Stars Docker Pulls

Table of contents

Overview

Flyte binds together the tools you use into easily defined, automated workflows. It is a request-based, decoupled automation engine which allows you to define flows to enable integrated behaviour across these disparate tools.

Flyte has chat-ops enabling integrations for Slack, as well as some other out-of-the-box integrations. These integrations, or packs can be added to and extended easily by using Flyte's RESTful API.

Some of the applications already in use include chat-ops based inventory management, host/container administration and orchestration, and deployment of applications into Kubernetes.

Automation is done using flows which essentially take form of "if this happens in system A, then do this in system B". For example you could create a flow that triggers sending an email to a team's email if their app's deployment has failed, or create a deployment pipeline triggered from an instant chat message.

How it works

The Flyte-API acts as the orchestrator and is backed by a (MongoDB) database server in which Flows, Packs references and Datastore entries are stored. Before continuing with the high level architecture diagram, lets introduce some of the key concepts of Flyte:

  • Flows are a list of steps that define a particular use case - for example triggering the deploy of an app when a user types the message "deploy foo-app 1.2.0" in a particular chat room. Each step in a flow consists of:

    • An Event that triggers it (e.g. an instant message being observed in a particular chat room).
    • A Criteria that must be satisfied for the step to run (e.g: message matches certain regex).
    • An Action to be executed if the criteria matches.

    You can find more info about flows here.

  • Packs are self-contained apps that are responsible for executing flow actions and sending events to the flyte-api. For instance, flyte-slack-pack consumes events/messages from a slack channel but also sends messages via Slack.

  • DataStores are basically configuration properties shared between flows. For instance, list of environments, urls, etc.

component diagram

How are flows executed

  1. Packs consume events from external services - for example, a Slack message from a specific channel.
  2. Packs transform these external events to flyte events before pushing them to Flyte-API.
  3. Flyte-API receives an event and triggers any flow which is listening to that event.
  4. This flow execution will create an action and flyte-api will store it in its database.
  5. Packs will poll for new actions to Flyte-API.
  6. Flyte-API will assign an action to a pack.
  7. Pack will execute the action and return the result as a new event, which will trigger the next step in our current flow or a different one.

component diagram

Flyte-API / Flyte Pack interaction: The Flyte Pack queries Flyte-API which returns a response.

Getting Started

Check out the Quick Start documentation to get started on building new flows or custom packs.

Running

The are a number of ways to run flyte and its mongo db. Note that the default mongo host and port for flyte is localhost:27017 (this value can be changed using the FLYTE_MGO_HOST env variable).

The port number can be overridden, see Configuration

Once running, flyte will be available on http://localhost:8080 (TLS disabled), or http://localhost:8443 (TLS enabled).

From Source

Pre-req: must have modules installed and Go 1.11 or higher.

Build & run:

make run

Command starts mongo docker container and flyte go executable in the background. Output is written to flyte.out file.

or manually...

go test ./... -tags="integration acceptance" //remove tags if only want to run unit tests
docker run -d -p 27017:27017 --name mongo mongo:latest
go build && ./flyte

Using Docker

make docker-run

or manually...

docker run -d -p 27017:27017 --name mongo mongo:latest
docker build -t flyte:latest .
docker run -p 8080:8080 -e FLYTE_MGO_HOST=mongo -d --name flyte --link mongo:mongo flyte:latest
 

Running the tests

Acceptance Tests

For acceptance tests:

go test ./... -tags=acceptance

These will start a disposable docker mongo container and flyte on randomly available TCP ports. If mongo can't be started (e.g docker is not available in the path), tests will be skipped and won't fail the build.

Acceptance tests will not run when building flyte in docker.

The tests can be run in an IDE by running the test suite in "acceptance_test.go".

Integration Tests

For integration tests:

go test ./... -tags=integration

For the mongo db integration tests, which are slower running:

go test ./... -tags=db

To run both:

go test ./... -tags="integration db"

Please note that both unit and integration tests will run using the above command/s.

Postman

There are a number of postman files in postman folder that can be used to test running flyte

More resources

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the Apache License License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].