Files
ddd-cqrs-4-java-example/quarkus/query
Michael Schnell 667047c793 Changed to mariadb
2019-12-29 10:30:16 +01:00
..
2019-12-26 16:51:24 +01:00
2019-12-22 11:49:09 +01:00
2019-12-22 11:49:09 +01:00
2019-12-26 10:16:02 +01:00
2019-12-29 10:30:16 +01:00

cqrs4j-quarkus-example-query

Query microservice that uses Quarkus, ddd-4-java and cqrs-4-java libraries. Events are stored in an EventStore and the query data is retrieved from a MariaDB database.

Prerequisites

Make sure you installed everything as described here.

Run the query microservice in development mode

  1. Open a console (Ubuntu shortcut = ctrl alt t)
  2. Start the query microservice:
    cd ddd-cqrs-4-java-example/quarkus/query
    ./mvnw quarkus:dev
    
  3. Opening http://localhost:8080/ should show the query welcome page

TODO ... (Does currently not work)

OPTIONAL Build and run the query microservice in native mode

  1. Make sure you have enough memory (~6-8 GB) on your PC or VM
  2. Open a console (Ubuntu shortcut = )
  3. Build the native executable
    cd query
    ./mvnw verify -Pnative
    
  4. Run the microservice
     ./target/cqrs4j-quarkus-example-query-1.0-SNAPSHOT-runner \
         -Djava.library.path=$GRAALVM_HOME/jre/lib/amd64 \
         -Djavax.net.ssl.trustStore=$GRAALVM_HOME/jre/lib/security/cacerts
    

Issues