Code Monkey home page Code Monkey logo

akka-ddd's Introduction

akka-ddd Build Status Version

Join the chat at https://gitter.im/pawelkaczor/akka-ddd

Reusable artifacts for building applications on top of Akka platform following a CQRS/DDDD-based approach.

Core functionality originally developed as part of DDD Leaven Akka project.

Used by: DDD Leaven Akka Ver 2

Modules overview

akka-ddd-messaging

Contains base types for commands and events and their envelopes ( command/event messages ). This module should be used on both write and read side of the application.

akka-ddd-core

Contains core artifacts used on write side of the application:

  • AggregateRoot trait - abstract persistent, event sourced actor responsible for processing commands received from the office. Implementation of AggregateRoot trait represents concrete business entity (i.e Reservation, Product, etc) See example AR: DummyAggregateRoot

  • Office - an actor that is used by the client to talk to Aggregate Roots of particular class. See Don't call me, call my office for explanation. There are two office implementations: "simple" (used for testing) and "global" / distributed (implemented using Akka Sharding)

  • Receptor - allows one office to react on events occurred in another office. Receptor is capable of filtering input events received from configured event stream, transforming them into arbitrary output messages and routing output messages to configured fixed or dynamic (derived from the message) destination. To make configuration of these capabilities straightforward ReceptorBuilder provides simple DSL. Here you can find an example configuration of typical receptor that receives event from one office and sends command to another office. Actual logic of reading events from event stream is pluggable - EventStreamSubscriber must be mixed into Receptor class. Ready to use EventstoreSubscriber is provided by eventstore-akka-persistence module.

  • Saga - implementation of Saga / Process Manager pattern. See: Saga - big picture

eventstore-akka-persistence

Incorporates Akka Persistence journal and snapshot-store backed by Event Store. Registers JSON Serializer as Akka custom serializer for akka.persistence.PersistentRepr (wrapper class that is used by Akka Persistence to store event in the journal). Json format is natural choice for Event Store as it enables creating user projections using javascript directly in Event Store. Provides also EventstoreSubscriber that should be mixed into Reactor and SagaManager (available in akka-ddd-core).

akka-ddd-scheduling

Provides durable scheduler (backed by Event Store!) that is typically used by Saga to schedule timeout/deadline messages. See: Durable Scheduler - big picture.

view-update

Generic artifacts for building view update services that consume events from Event Store and update a configured view store (i.e. Sql database). See: View Update Service - big picture

view-update-sql

Sql (defult is Postgresql) specific implementation of view-update artifacts.

akka-ddd-test

Allows easy creation of test of Aggregate Root implementations. Supports both "simple" and "global" offices. See DummyOfficeSpec and DummyOfficeWithGenSpec.

akka-ddd-write-front

Artifacts for building http server with use of Akka Http and Akka Cluster Client responsible for handling commands sent as json messages. Provides infrastructure for demarshalling commands and forwarding them to write-backend application.

akka-ddd's People

Contributors

gitter-badger avatar pawelkaczor 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.