Notes:
-
Use "--config core.autocrlf=input" at the end of the git clone command. More info
-
For Linux, run the following command before the first deploy of elasticsearch:
sysctl -w vm.max_map_count=262144
Demo of stock management with a kappa architecture approach:
Stock event processing flow design:
- Change events source with items movements
- Processing events to calculate the aggregate
- Propagation of events and data services
You need to have the following tools installed:
- Docker V18.09 or later
- Maven V3.6.1 or later
- Apache Jmeter 5.1.0 or later
You need to have the following Docker images:
- oracle/serverjre:8
- oracle/coherence:12.2.1.3.0-standalone
For build the images download the repository from GitHub
Then follow the README.md steps of the following directories:
- OracleJava
- OracleCoherence
Some dependencies needs a special maven configuration Oracle Documentation
Run compile.sh for the following directories:
- common
- coherence
- springboot/dataservice
- springboot/processor
Run build.sh for the following directories:
- elk/logstash/movements
- elk/logstash/stock
- kafka/ksql-headless
Containers are connected to jbcm-net (docker bridge network)
docker network create jbcn-net
docker-compose -f docker-compose-1.yml up -d
bash kafka/broker/configureTopics.sh
bash elk/elasticsearch/createMappings.sh
bash elk/kibana/createDashboards.sh
docker-compose -f docker-compose-2.yml up -d
jmeter -n -t jmeter/Kafka_Locations_Enrich.jmx
jmeter -n -t jmeter/Kafka_Changes_Test.jmx
jmeter -n -t jmeter/Kafka_Stock_Test.jmx
jmeter -n -t jmeter/Kafka_Locations_Enrich.jmx
jmeter -n -t jmeter/Kafka_Data_Ingestion.jmx
bash kafka/broker/listGroupConsumers.sh
bash kafka/broker/resetOffsets.sh $group $topic
docker run --net=jbcn-net -it confluentinc/cp-ksql-cli http://ksql-server:8089
docker-compose -f docker-compose-2.yml down
docker-compose -f docker-compose-1.yml down
- Miguel García - Github - mgarlorenzo
- David Fernández - Github - davidfc89