dfelski / simple-axon-project

Simple Axon Framework project structure without usage of Axon Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Axon Framework setup

This example shows how the Axon Framework can be used without external services.

The EventStore is embedded (EmbeddedEventStore) and the events are stored in memory (InMemoryEventStorageEngine). Commands and queries are dispatched directly using SimpleCommandBus and SimpleQueryBus. See MyAxonConfiguration for configuration details.

The events are also dispatched directly using SimpleEventBus. Therefor the dependency to axon-server-connector is excluded.

Start the application with ./gradlew bootRun and test it using curl -X PUT localhost:8080 to add data and curl localhost:8080 to retrieve the amount of it.

About

Simple Axon Framework project structure without usage of Axon Server


Languages

Language:Java 95.3%Language:Kotlin 4.7%