Giter Club home page Giter Club logo

grooves's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update plugin com.github.rahulsom.waena.root to v0.6.7
  • chore(deps): update plugin com.gradle.develocity to v3.17.6
  • chore(deps): update plugin io.spring.dependency-management to v1.1.6
  • chore(deps): update plugin org.asciidoctor.jvm.convert to v4.0.3
  • fix(deps): update dependency org.assertj:assertj-core to v3.26.3
  • fix(deps): update dependency org.awaitility:awaitility to v4.2.2
  • fix(deps): update groovy monorepo to v4.0.22 (org.apache.groovy:groovy-xml, org.apache.groovy:groovy-json, org.apache.groovy:groovy-dateutil, org.apache.groovy:groovy-all, org.apache.groovy:groovy)
  • fix(deps): update slf4j monorepo to v2.0.16 (org.slf4j:slf4j-simple, org.slf4j:slf4j-api)
  • chore(deps): update plugin org.flywaydb.flyway to v10.17.0
  • chore(deps): update plugin org.sonarqube to v5.1.0.4882
  • fix(deps): update dependency com.h2database:h2 to v2.3.230
  • fix(deps): update dependency org.apache.commons:commons-lang3 to v3.16.0
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/build.yml
gradle
gradle.properties
settings.gradle.kts
  • com.gradle.develocity 3.17.5
build.gradle.kts
  • com.github.rahulsom.waena.root 0.6.1
  • org.jetbrains.kotlin.jvm 1.8.22
  • org.jetbrains.kotlin.plugin.allopen 1.8.22
  • org.jlleitschuh.gradle.ktlint 12.1.1
  • org.springframework.boot 3.0.4
  • io.spring.dependency-management 1.1.5
  • org.sonarqube 5.0.0.4638
  • me.champeau.buildscan-recipes 0.2.3
  • com.sourcemuse.mongo 1.0.7
gradle/jacoco.gradle
  • jacoco 0.8.12
gradle/libs.versions.toml
  • javax.activation:activation 1.1.1
  • org.asciidoctor:asciidoctorj 2.5.13
  • org.aspectj:aspectjrt 1.9.22.1
  • org.assertj:assertj-core 3.26.0
  • org.awaitility:awaitility 4.2.1
  • commons-beanutils:commons-beanutils 1.9.4
  • com.google.auto.service:auto-service 1.1.1
  • com.google.testing.compile:compile-testing 0.21.0
  • com.google.inject:guice 7.0.0
  • com.google.guava:guava 33.2.1-jre
  • org.apache.groovy:groovy 4.0.21
  • org.apache.groovy:groovy-all 4.0.21
  • org.apache.groovy:groovy-dateutil 4.0.21
  • org.apache.groovy:groovy-json 4.0.21
  • org.apache.groovy:groovy-xml 4.0.21
  • com.h2database:h2 2.2.224
  • javax:javaee-api 8.0.1
  • javax.xml.bind:jaxb-api 2.3.1
  • io.openliberty.features:jaxrs-2.1 24.0.0.5
  • javax.annotation:javax.annotation-api 1.3.2
  • org.junit.jupiter:junit-jupiter-api 5.10.2
  • org.junit.jupiter:junit-jupiter-engine 5.10.2
  • org.junit.jupiter:junit-jupiter-params 5.10.2
  • org.apache.commons:commons-lang3 3.14.0
  • org.apache.logging.log4j:log4j-core 2.23.1
  • org.apache.logging.log4j:log4j-slf4j-impl 2.23.1
  • ch.qos.logback:logback-classic 1.5.6
  • org.projectlombok:lombok 1.18.32
  • com.squareup.okhttp3:okhttp 4.12.0
  • org.reactivestreams:reactive-streams 1.0.4
  • io.reactivex:rxjava 1.2.1
  • io.reactivex:rxjava-reactive-streams 1.2.1
  • io.reactivex.rxjava2:rxjava 2.2.21
  • org.slf4j:slf4j-api 2.0.13
  • org.slf4j:slf4j-simple 2.0.13
  • org.spockframework:spock-core 2.3-groovy-4.0
  • org.spockframework:spock-spring 2.3-groovy-4.0
  • org.jetbrains:annotations 24.1.0
  • io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch 0.6.3
  • com.sun.xml.bind:jaxb-core 4.0.5
  • com.sun.xml.bind:jaxb-impl 4.0.5
  • com.github.rahulsom:svg-builder 0.5.0
gradle/codenarc/codenarc.gradle
  • codenarc 3.2.0
grooves-api/build.gradle.kts
grooves-core/build.gradle.kts
  • dev.jacomet.logging-capabilities 0.+
  • io.freefair.aspectj.post-compile-weaving 8.0.1
grooves-diagrams/build.gradle.kts
  • io.miret.etienne.sass 1.5.0
grooves-docs/build.gradle.kts
  • org.ajoberstar.git-publish 2.1.3
  • org.asciidoctor.jvm.convert 4.0.2
grooves-example-javaee/build.gradle
  • io.openliberty.tools.gradle.Liberty 3.8.3
grooves-example-pushstyle/build.gradle
  • nu.studer.jooq 9.0
  • org.flywaydb.flyway 10.15.0
grooves-example-springboot-jpa/build.gradle.kts
grooves-example-springboot-kotlin/build.gradle.kts
  • io.projectreactor.addons:reactor-test 3.0.7.RELEASE
grooves-example-test/build.gradle.kts
  • xerces:xercesImpl 2.12.2
  • org.apache.httpcomponents:httpclient 4.5.14
grooves-groovy/build.gradle.kts
grooves-java/build.gradle.kts
grooves-types/build.gradle.kts
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.4
html
grooves-docs/src/docs/asciidoc/docinfo-footer.html
  • jquery 3.7.1@sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==
grooves-site/index.html
  • jquery 3.7.1@sha512-+k1pnlgt4F1H8L7t3z95o3/KO+o78INEcXTbnoJQ/F2VqDVhWoaiVml/OEHv9HsVgxUaVW+IbiZPUJQfF/YxZw==
  • popper.js 2.11.8@sha512-TPh2Oxlg1zp+kz3nFA0C5vVC6leG/6mm1z9+mA81MI5eaUVqasPLO8Cuk4gMF4gUfP5etR73rgU/8PNMsSesoQ==

  • Check this box to trigger a request for Renovate to run again on this repository

Add examples in docs for joins

Joins are currently only performed in one example project.
It might be a good idea to perform joins in all projects so they can be documented in all styles.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Support additive rollups

Currently rollups are computed as

departmentEmployeeJoin
   .computeSnapshot(id, dateOrVersion)
   .flatMap { fromIterator(it.joinedIds) }
   .flatMap { employeeQuery.computeSnapshot(it) }
   .reduce (new DepartmentSummary()) { rollup, snapshot -> ... }

There isn't much potential to do this additively.

If we can do it differently, and this works, we could try this

departmentEmployeeJoin
   .computeSnapshot(id, dateOrVersion)
   .flatMap { getAllEventsForAfterDateOrVersion(it.joinedIds, dateOrVersion) }
   .reduce (new DepartmentSummary()) {rollup, event -> ... }

The challenge is reducing

  1. The number of events fetched
  2. The number of computations performed
  3. The number of scenarios requiring a full recompute

Add example for push style event sourcing

Currently, we query the events when computing snapshots. A lot of event sourcing frameworks are built around push, i.e. a kafka stream with the event causes snapshots to be computed. There is no turning around and querying the source of truth for the event.

In our case, it would mean, we always precompute snapshots. This reduces the cost of computation at read time. The downside of such a system would be, it won't support reverts.

For some applications, that is not a big problem.

Create FRP Style Queries

The current ones are very object oriented. Here's my plan for it.

def query = Grooves.temporal().
    snapshotsFrom {Date maxTimestamp, AggregateT aggregate -> 
      ? as Publisher<SnapshotT>
    }.
    eventsFrom {AggregateT aggregate, SnapshotT lastSnapshot, Date snapshotTime -> 
      ? as Publisher<EventT>
    }.
    onException {Exception e, SnapshotT snapshot, EventT event ->
      ? as Publisher<EventApplyOutcome>
    }.
    on(MyFirstEvent.class) {MyFirstEvent event, SnapshotT snapshot ->
      ? as Publisher<EventApplyOutcome>
    }.
    on(MySecondEvent.class) {MySecondEvent event, SnapshotT snapshot ->
      ? as Publisher<EventApplyOutcome>
    }.
    build()

query.computeSnapshot(aggregate, new Date()).subscribe(...)

Open questions:

  1. How do we verify completeness of queries across all languages?
  2. Can we get 1 at compile time?
  3. Does this make Grooves any better?

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.