Event Modeling is a method of describing systems using an example of how information has changed within them over time.
The systems landscape consists of three systems order management, restaurant management and courier management
Customers use the web application to place food orders at local restaurants. Application(s) coordinates a restaurant/kitchen order preparation and a network of couriers who deliver the orders.
Specification by example (SBE) is a collaborative approach to defining requirements and business-oriented functional tests for software products based on capturing and illustrating requirements using realistic examples instead of abstract statements.
Name: | Courier Management | ||
Description: | Managing courier information. A courier view of an order (managing the delivery of orders). | ||
Concepts: | Architectural patterns: | Technology: | |
|
|
|
|
Service API | |||
Commands: | Queries: | Events published: | |
gRPC:
|
gRPC:
|
gRPC:
|
|
Domain model: | |||
|
|||
Dependencies: | |||
Invokes | Subscribes to | ||
- | - |
This project is driven using maven.
Requirements
You can download a ZIP file with AxonServer as a standalone JAR. This will also give you the AxonServer CLI and information on how to run and configure the server.
Alternatively, you can run the following command to start AxonServer in a Docker container:
docker run -d --name axonserver -p 8024:8024 -p 8124:8124 axoniq/axonserver
Build & Test
./mvnw clean verify
Run
./mvnw spring-boot:run
Requirements
- Kubernetes. It is included in the Docker on Mac (and Windows) binary so it installed automatically with it. After a successful installation, you need to explicitly enable Kubernetes support. Click the Docker icon in the status bar, go to “Preferences”, and on the “Kubernetes” tab check “Enable Kubernetes”.
- Skaffold is a command line tool that facilitates continuous development for Kubernetes applications.
- Kubectl allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs
Continuously deploy
Use skaffold dev
to build and deploy your app every time your code changes:
$ skaffold dev
or activate observability
profile, to enable metrics and tracing with Prometheus, Grafana and Jaeger:
$ skaffold dev -p observability
Deploy once
Use skaffold run
to build and deploy your app once, similar to a CI/CD pipeline:
$ skaffold run
or activate observability
profile, to enable metrics and tracing with Prometheus, Grafana and Jaeger:
$ skaffold run -p observability
- https://microservices.io/book
- https://www.manning.com/books/specification-by-example
- https://teamtopologies.com/book
- https://www.oreilly.com/library/view/domain-driven-design-distilled/9780134434964/
- https://ddd-crew.github.io/
- https://miro.com/app/board/o9J_kqtuB6A=/
- https://eventmodeling.org/
- https://docs.axoniq.io/reference-guide/
Created with ❤️ by Fraktalio