Workflow library in Go for API development
summary
A lightweight Go workflow library that runs inside a single API request models work as a graph of nodes with map datastore, executes nodes with a controller that spins executors into separate goroutines, and uses goroutines and channels (notifier, output, broadcast per executor) to coordinate dependencies. It supports actor types for gRPC/HTTP/DB, has a rollback actor and graph-level error/panic state to stop paralell calls, records logs/metrics, costs about 3–4% extra latency in their tests, and is not open source.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:07What is an API workflow
- 2:55Real-world API workflow example
- 5:06Introducing the workflow framework
- 5:49Workflow architecture explained
- 7:12Workflow execution with controller
- 11:48Worker communication via channels
- 13:10Step-by-step workflow execution
- 15:00Key features of the workflow
- 16:46Rollback handling in workflows
- 17:30Benefits and flexibility
- 18:53Comparison with existing workflows
- 19:58Conclusion and Q&A








