Git Product home page Git Product logo

grooves's Introduction

Build Status License codecov

Grooves

Event Sourcing Library for Java.

Grooves formerly meant Groovy Event Sourcing. In its present form, it can support just about any JVM language. Examples and tests include Java, Groovy and Kotlin. Documentation can be found here.

Modules

grooves-gorm

badge

This is for you if you’re using GORM for persistence. It has interfaces that need to know the domain object used, and build flexible queries without forcing you to write the code to read domain objects from the database.

grooves-groovy

badge

This is for you if you want to write your queries in groovy, but are not using GORM. You will have to implement your own data access, but will get support for checking completeness of queries based on groovy AST Transformations.

grooves-java

badge

This is for you if you want to write your queries in java. You will have to implement your own data access, but will get support for checking completeness of queries based on Annotation Processors.

grooves-api

badge

This is for you if you are not using groovy or java, or don’t care about verifying completeness of queries. For example, you could use this for writing code with Kotlin.

grooves-types

badge

This contains types that are used in grooves-api. It is very unlikely you’ll be using this directly.

grooves-diagrams

badge

This is an asciidoctor extension that allows you to generate diagrams like those in grooves' documentation.

Examples

examples/grails/rdbms

This uses grails (with groovy) backed by Hibernate (through GORM).

examples/grails/rdbms_mongo

This uses grails (with groovy) backed by Hibernate (through GORM) for events and aggregates and MongoDB (through GORM) for snapshots.

examples/grails/rxmongo

This uses grails (with groovy) backed by MongoDB (through GORM). The API is entirely reactive. It is based on rx-gorm-mongo.

examples/springboot/jpa

This uses Springboot and JPA repositories for everything. All the code is written in groovy.

examples/springboot/kotlin

This uses Spring Reactive Web and RxMongo repositories for everything. All the code is written in kotlin.

examples/javaee

This uses Java and JavaEE for the APIs. The persistence here is completely made up using a few List objects. The reason for that is to show how you don’t have to be tied to any one persistence mechanism.

examples/pushstyle

This uses Kotlin and Guava EventBus. The snapshots are persisted using jOOQ. The events are never persisted. They are processed as they come on the EventBus.

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.