Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evolution-gaming/ddata-tools
Tools to work with akka distributed data
https://github.com/evolution-gaming/ddata-tools
akka cats cats-effect ddata scala
Last synced: about 2 months ago
JSON representation
Tools to work with akka distributed data
- Host: GitHub
- URL: https://github.com/evolution-gaming/ddata-tools
- Owner: evolution-gaming
- License: mit
- Created: 2018-03-02T08:27:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T11:06:02.000Z (6 months ago)
- Last Synced: 2024-07-18T13:48:07.303Z (6 months ago)
- Topics: akka, cats, cats-effect, ddata, scala
- Language: Scala
- Size: 55.7 KB
- Stars: 3
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DData Tools
[![Build Status](https://github.com/evolution-gaming/ddata-tools/workflows/CI/badge.svg)](https://github.com/evolution-gaming/ddata-tools/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/evolution-gaming/ddata-tools/badge.svg?branch=master)](https://coveralls.io/github/evolution-gaming/ddata-tools?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/91f43a46edcf44e7829e4ef10aae3ba1)](https://www.codacy.com/app/evolution-gaming/ddata-tools?utm_source=github.com&utm_medium=referral&utm_content=evolution-gaming/ddata-tools&utm_campaign=Badge_Grade)
[![Version](https://img.shields.io/badge/version-click-blue)](https://evolution.jfrog.io/artifactory/api/search/latestVersion?g=com.evolutiongaming&a=ddata-tools_2.13&repos=public)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://opensource.org/licenses/MIT)### SafeReplicator - is a typesafe api for [DData replicator](https://doc.akka.io/docs/akka/2.5.9/distributed-data.html)
```scala
trait SafeReplicator[F[_], A <: ReplicatedData] {def get(implicit consistency: ReadConsistency): F[Option[A]]
def update(modify: Option[A] => A)(implicit consistency: WriteConsistency): F[Unit]
def delete(implicit consistency: WriteConsistency): F[Boolean]
def subscribe(
onStop: F[Unit],
onChanged: A => F[Unit])(implicit
factory: ActorRefFactory,
executor: ExecutionContext
): Resource[F, Unit]def flushChanges: F[Unit]
}
```## Setup
```scala
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")libraryDependencies += "com.evolutiongaming" %% "ddata-tools" % "2.0.8"
```