mirror of
https://github.com/ash-project/reactor.git
synced 2024-09-17 03:42:48 +12:00
Reactor is a dynamic, concurrent, dependency resolving saga orchestrator.
James Harton
e8ac9a1d90
* feat(map): Add the ability to map over elements of a collection inside a reactor. * improvement: throw a more helpful error when a step returns an invalid result. * fix: automatically pass extra arguments from the map step to nested steps. They can't be referred to directly because they may be added to the graph at runtime, and may depend on steps which have been completed and their results discarded because they have no dependents at that time. * fix: spurious test failures seemingly caused by `Mimic`. |
||
---|---|---|
.github | ||
.vscode | ||
config | ||
documentation | ||
lib | ||
logos | ||
test | ||
.check.exs | ||
.doctor.exs | ||
.formatter.exs | ||
.gitignore | ||
.tool-versions | ||
CHANGELOG.md | ||
FUNDING.yml | ||
LICENSE | ||
mix.exs | ||
mix.lock | ||
README.md |
Reactor
Reactor is a dynamic, concurrent, dependency resolving saga orchestrator.
Woah. That's a lot. Let's break it down:
- Saga orchestrator A saga is a way of providing transaction-like semantics across multiple distinct resources.
- Dependency resolving reactor allows you to describe the dependencies between your saga steps using arguments which are converted into a DAG and used to compute execution order.
- Concurrent unless otherwise specified reactor will run as many steps as possible concurrently whilst taking into account the results of the dependency resolution.
- Dynamic whilst you can define a reactor statically using our awesome DSL, you can also build workflows dynamically - and even add steps while the reactor is running.
Sponsors
Thanks to Alembic Pty Ltd for sponsoring a portion of this project's development.
Installation
The package can be installed by adding reactor
to your list of dependencies in mix.exs
:
def deps do
[
{:reactor, "~> 0.8.5"}
]
end
Documentation
Documentation for the latest release will be available on
hexdocs and for the main
branch.
Contributing
- To contribute updates, fixes or new features please fork and open a
pull-request against
main
. - Please use conventional commits - this allows us to dynamically generate the changelog.
- Feel free to ask any questions on the
#reactor
channel on the Ash Discord.
Licence
reactor
is licensed under the terms of the MIT
license. See the LICENSE
file in this
repository
for details.