An open API service indexing awesome lists of open source software.

https://github.com/zio-archive/zio-flow

Resilient, distributed applications powered by ZIO
https://github.com/zio-archive/zio-flow

Last synced: 15 days ago
JSON representation

Resilient, distributed applications powered by ZIO

Awesome Lists containing this project

README

          

[//]: # (This file was autogenerated using `zio-sbt-website` plugin via `sbt generateReadme` command.)
[//]: # (So please do not edit it manually. Instead, change "docs/index.md" file or sbt setting keys)
[//]: # (e.g. "readmeDocumentation" and "readmeSupport".)

# ZIO Flow

ZIO Flow is an engine for executing persistent, distributed, fault-tolerant applications, providing an easy and powerful way to build stateful serverless applications.

[![Development](https://img.shields.io/badge/Project%20Stage-Development-green.svg)](https://github.com/zio/zio/wiki/Project-Stages) ![CI Badge](https://github.com/zio/zio-flow/workflows/CI/badge.svg) [![Sonatype Releases](https://img.shields.io/nexus/r/https/oss.sonatype.org/dev.zio/zio-flow_2.13.svg?label=Sonatype%20Release)](https://oss.sonatype.org/content/repositories/releases/dev/zio/zio-flow_2.13/) [![Sonatype Snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/dev.zio/zio-flow_2.13.svg?label=Sonatype%20Snapshot)](https://oss.sonatype.org/content/repositories/snapshots/dev/zio/zio-flow_2.13/) [![javadoc](https://javadoc.io/badge2/dev.zio/zio-flow-docs_2.13/javadoc.svg)](https://javadoc.io/doc/dev.zio/zio-flow-docs_2.13) [![ZIO Flow](https://img.shields.io/github/stars/zio/zio-flow?style=social)](https://github.com/zio/zio-flow)

ZIO Flow helps you orchestrate complex business logic, without having to worry about fallible systems, transient failures, manual rollbacks, or other infrastructure.

- Type-safe, compositional front-end
- Resilient interactions with databases, web services, and microservices
- Persistent workflows that survive restarts
- Transactional guarantees via a persistent saga pattern

## Getting started

For defining ZIO Flow programs, you need to add the following dependency to your `build.sbt` file:

```scala
libraryDependencies += "dev.zio" %% "zio-flow" % "1.0.0-RC3"
```

This module is available for Scala.js as well.

To learn more about defining ZIO Flow programs, see [Defining flows](zflow).

There are a couple of _activity libraries_ providing integration with 3rd party services. These libraries are available as separate modules,
and they only have to be present on the definition side of your flows. The executor does not need to have these libraries on the classpath.

```scala
libraryDependencies += "dev.zio" %% "zio-flow-twilio" % "1.0.0-RC3"
libraryDependencies += "dev.zio" %% "zio-flow-sendgrid" % "1.0.0-RC3"
```

There are many ways to execute ZIO Flow programs. The easiest way is to use a compiled version of the built-in _ZIO Flow Server_:

```scala
sbt zioFlowServer/run
```

We will provide ready to use Docker images as well in the future.

To embed the ZIO Flow executor in your own application, you need to add the following dependency:

```scala
libraryDependencies += "dev.zio" %% "zio-flow-runtime" % "1.0.0-RC3"
```

For more information about the executors, see [Execution](execution).
You will also need to choose a [persistent backend implementation](backends):

```scala
libraryDependencies += "dev.zio" %% "zio-flow-rocksdb" % "1.0.0-RC3"
libraryDependencies += "dev.zio" %% "zio-flow-dynamodb" % "1.0.0-RC3"
libraryDependencies += "dev.zio" %% "zio-flow-cassandra" % "1.0.0-RC3"
```

## Documentation

Learn more on the [ZIO Flow homepage](https://zio.dev/zio-flow/)!

## Contributing

For the general guidelines, see ZIO [contributor's guide](https://zio.dev/about/contributing).

## Code of Conduct

See the [Code of Conduct](https://zio.dev/about/code-of-conduct)

## Support

Come chat with us on [![Badge-Discord]][Link-Discord].

[Badge-Discord]: https://img.shields.io/discord/629491597070827530?logo=discord "chat on discord"
[Link-Discord]: https://discord.gg/2ccFBr4 "Discord"

## License

[License](LICENSE)