Description
go-workflows is a Go library for durable workflows that you embed in your own program. The README says it borrows heavily from Temporal, which it notes is itself a fork of Cadence, and from DTFx. Workflows are written as Go code, with the rule that they must not use non-deterministic features such as select statements or iteration over a map. Inputs and outputs of workflows and activities must be serialisable. Activities can have side effects and do not have to be deterministic. They run once, and their result is persisted. A worker is responsible for executing both workflows and activities, and both must be registered with it. A backend persists the workflow events. The README lists in-memory, SQLite, MySQL, PostgreSQL and Redis backends, and says the in-memory one is for testing. Workflows can be started from the same process as the worker, or from a separate one. The README's example uses the SQLite backend with a single worker and then starts one workflow instance. Full documentation is on the project's documentation site.…
Highlights
- Durable workflows written in Go
- Activities that run once and persist results
- Backends for SQLite, MySQL, PostgreSQL and Redis
- In-memory backend for testing
Ratings & Reviews
No ratings yet
Be the first to rate Go Workflows.
People also visit

workflow-orchestration-patterns
Design durable workflows with Temporal for distributed systems
Go Workflows FAQ
What is go-workflows?
A Go library for durable workflows that you embed in your own program, in the style of Temporal, Cadence and DTFx.
What rules apply to workflow code?
Workflows must not use non-deterministic features such as select or iterating over a map. Inputs and outputs must be serialisable.
Where is the data stored?
In a backend that persists workflow events: SQLite, MySQL, PostgreSQL or Redis. The in-memory backend is for testing.
Must the workflows run in the same process as the worker?
No. The README says workflows can be started from the same process as the worker, or from a separate one.
Where are the docs?
The README links the current documentation on the project's site, and two blog posts about its design.
What are the best Go Workflows alternatives?
Popular alternatives to Go Workflows include Dbos Transact Golang, Temporal and Cadence. See all Go Workflows alternatives

