Skip to content

Developed order management system using CQRS design pattern

Notifications You must be signed in to change notification settings

venubothsa/order-management-api

Repository files navigation

ORDER MANAGEMENT API

Order management api is an appilcation which will do create, update and retrieve orders.
Here i consider this application as large scale application, so i followed CQRS(Command Query Responsibility Segregation) design pattern. ordermanagemetdesign

Prerequisites

  1. JDK 8 and above
  2. Intellij or STS
  3. Axon Server
  4. Apache Kafka
  5. Mongo DB

What is Axon Server

Axon Server is zero configuration message router and an event store. It serves two purposes

  1. it routes messages (commands, queries, and events) between distributed components (microservices) in a location transparent way.
  2. it stores events allowing distributed applications to have a single source of truth.

To Run

AxonServer-4.5.12>java -jar axonserver.jar

We can see Axon Server dashboard on port number http://localhost:8024 axonscreenshot

What is Kafka

Apache Kafka is an open-source distributed event streaming platform.

To Run Kafka in local system

bin\windows>zookeeper-server-start.bat D:\tools\kafka\config\zookeeper.properties
bin\windows>kafka-server-start.bat D:\tools\kafka\config\server.properties