Coder Social home page Coder Social logo

scala-steward / akka-persistence-r2dbc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from astutebits/akka-persistence-r2dbc

0.0 0.0 0.0 512 KB

A reactive Akka Persistence storage backend with R2DBC

License: Apache License 2.0

Scala 99.55% Shell 0.45%

akka-persistence-r2dbc's Introduction

Akka Persistence R2DBC

CircleCI

An implementation of the Akka Journal and Snapshot store persistence plugin APIs, and the full Persistence Query API with R2DBC. The plugin has a few additional extensions documented below.

Installation

Configuration

The plugin provides the default settings as part of the reference.conf of the database flavour:

Unlike the other AsyncWriteJournal calls, the asyncReplayMessages one is not protected by a circuit-breaker, for a good reason:

This call is NOT protected with a circuit-breaker because it may take long time to replay all events. The plugin implementation itself must protect against an unresponsive backend store and make sure that the returned Future is completed with success or failure within reasonable time. It is not allowed to ignore completing the future.

The plugin guarantees that the Future is completed by imposing a time limit on the SQL stream's completion. You can configure the timeout with the replay-messages-timeout parameter, the default value is 10s (in line with the circuit breaker settings).

Extensions

  • akka.serialization.AsyncSerializer support
  • Atomic Projections gives you the ability to persist an event and run projections for a "local" read-side in an atomic transaction.

Atomic Projections

The goal of the extension is to allow you to enjoy the benefits of CQRS and Event Sourcing without incurring the costs of running a more complex infrastructure for those cases when you really don't have to.

Contributing

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project’s open source license. Whether you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project’s open source license and warrant that you have the legal authority to do so.

License

This project is licensed under the Apache 2.0 license.

akka-persistence-r2dbc's People

Contributors

chmodas avatar scala-steward avatar tochemey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.