https://github.com/rahulsom/grooves
EventSourcing for Java
https://github.com/rahulsom/grooves
cqrs eventsourcing groovy java kotlin
Last synced: 11 months ago
JSON representation
EventSourcing for Java
- Host: GitHub
- URL: https://github.com/rahulsom/grooves
- Owner: rahulsom
- License: apache-2.0
- Created: 2017-02-20T19:19:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T19:04:48.000Z (12 months ago)
- Last Synced: 2025-04-11T20:23:35.235Z (12 months ago)
- Topics: cqrs, eventsourcing, groovy, java, kotlin
- Language: Java
- Homepage: https://rahulsom.github.io/grooves
- Size: 3.68 MB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 15
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Grooves
https://opensource.org/licenses/Apache-2.0[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License]]
https://codecov.io/gh/rahulsom/grooves[image:https://codecov.io/gh/rahulsom/grooves/branch/master/graph/badge.svg[codecov]]
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 https://rahulsom.github.io/grooves/[here].
== Modules
[cols="25%,75%"]
|===
a|grooves-groovy
image::https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-groovy/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-groovy", width="300px"]
a|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.
a|grooves-java
image::https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-java/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-java", width="300px"]
a|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.
a|grooves-api
image::https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-api/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-api", width="300px"]
a|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.
a|grooves-types
image::https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-types/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-types", width="300px"]
a|This contains types that are used in `grooves-api`.
It is very unlikely you'll be using this directly.
a|grooves-diagrams
image::https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-diagrams/badge.svg[link="https://maven-badges.herokuapp.com/maven-central/com.github.rahulsom/grooves-diagrams", width="300px"]
a|This is an asciidoctor extension that allows you to generate diagrams like those in grooves' documentation.
|===
== Examples
[cols="1,3"]
|===
|link:grooves-example-springboot-jpa[grooves-example-springboot-jpa]
|This uses Springboot and JPA repositories for everything.
All the code is written in groovy.
|link:grooves-example-springboot-kotlin[grooves-example-springboot-kotlin]
|This uses Spring Reactive Web and RxMongo repositories for everything.
All the code is written in kotlin.
|link:grooves-example-javaee[grooves-example-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.
|link:grooves-example-pushstyle[grooves-example-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.
|===
== Releasing
* Tag to release. A GitHub action should take care of publishing.
Remember to update `grooves-site/versions.json` with the correct list of supported versions.