Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Event-based Orchestration of Serverless Workflows

License

NotificationsYou must be signed in to change notification settings

triggerflow/triggerflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triggerflow is a scalable, extensible and serverless in design platform for event-based orchestration ofserverless workflows.

triggerflow_architecture

Triggerflow follows an Event-Condition-Action architecture with stateful triggers that can aggregate, filter,process and route incoming events from a variety of event sources in a consistent and fault tolerant way.

Thanks to Triggerflow's extensibility provided by its fully programmable trigger condition and action functions, andcombining and chaining multiple triggers, we can orchestrate different serverless workflow abstractions such asDAGs (Apache Airflow), State Machines (Amazon Step Functions), and Workflow as Code like (Azure Durable Functions),among other specialized workflows.

Triggerflow has been implemented using Open-Source Cloud Native projects like CloudEvents and KEDA or Knative.When Triggerflow is deployed using KEDA or Knative, the trigger processing service runs only when there are incomingevents so that it can be scaled down to zero when it is not used, which results in a pay-per-use serverless model.

You can read more about Triggerflow architecture and features in theTriggerflow: Trigger-based Orchestration of Serverless Workflows article, presentedand accepted at theACM Distributed and Event Based Systems 2020 conference.

Documentation

Installation and deployment

Examples

Triggerflow Client Example

fromtriggerflowimportTriggerflow,CloudEvent,DefaultConditionsfromtriggerflow.functionsimportPythonCallablefromtriggerflow.eventsources.rabbitimportRabbitMQEventSource# Instantiate Triggerflow clienttf_client=Triggerflow()# Create a workspace and add a RabbitMQ event source to itrabbitmq_source=RabbitMQEventSource(amqp_url='amqp://guest:guest@172.17.0.3/',queue='My-Queue')tf_client.create_workspace(workspace_name='test',event_source=rabbitmq_source)defmy_action(context,event):context['message']+='World!'# Create the trigger activation eventactivation_event=CloudEvent().SetEventType('test.event.type').SetSubject('Test')# Create a trigger with a custom Python callable action and a Join condition that joins 10 eventstf_client.add_trigger(trigger_id='MyTrigger',event=activation_event,condition=DefaultConditions.JOIN,action=PythonCallable(my_action),context={'message':'Hello ','join':10})# Publish 10 activation events, the action will only be executed on the 10th eventfor_inrange(10):rabbitmq_source.publish_cloudevent(activation_event)# Retrieve the trigger's contexttrg=tf_client.get_trigger('MyTrigger')print(trg['context']['message'])# Prints 'Hello World!'

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp