Skip to content

Proof of Concept on orchestration and choreography patterns to model business processes

License

Notifications You must be signed in to change notification settings

jantoniucci/poc-on-orchestration-and-choreography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poc-on-orchestration-and-choreography

Proof of Concept on orchestration and choreography patterns to model business processes based on the example posted in this very inspirational article "orchestration and choreography BPM design patterns"

Main concepts

Context Map

The Context Map for the example described in this article is:

  • Finance
    • Payments
  • Sales
    • Order
    • Checkout
  • Products
    • Inventory
    • Shipment

Each secod level element is actually implemented as a microservice.

Technology stack

  • Spring Boot (Microservices)
  • Camunda BPM (Busines Process Orchestation)
  • Apache Kafka (Business Process Choreography)

Run the PoC

Pre-requisites:

Clone the repo

git clone https:/jantoniucci/poc-on-orchestration-and-choreography.git
cd poc-on-orchestration-and-choreography

Run a full build

mvn install

At your Kafka's home directory, start zookeeper

bin/zookeeper-server-start.sh config/zookeeper.properties

start kafka

bin/kafka-server-start.sh config/server.properties

create a topic "retail"

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic retail

Check existing topics

bin/kafka-topics.sh --list --zookeeper localhost:2181

Start the microservices components one by one

mvn -f checkout exec:java
mvn -f inventory exec:java
mvn -f monitor exec:java
mvn -f order exec:java
mvn -f payment exec:java
mvn -f shipping exec:java

Now you can place an order via http://localhost:8090 You can inspect Order via http://localhost:8091 You can inspect Payment via http://localhost:8092 You can inspect all events going on via http://localhost:8095

About

Proof of Concept on orchestration and choreography patterns to model business processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published