Skip to content

Srikanth9793/Event-Driven-Microservices-Order-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

event-driven-microservices-Order-Processing

How to run apache kafka server

Step 1: Get Kafka

cd kafka_2.13-3.4.0

Step 2: Start Kafka Environment

  • Start the ZooKeeper service
$ bin/zookeeper-server-start.sh config/zookeeper.properties
  • Start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties

How app works?

  • clone project into local directory
    git clone git@github.com:omgshalihin/event-driven-microservices-springboot-kafka.git
    
  • within emailService > kafka > OrderConsumer.java class, replace fromEmail & toEmail
  • then run all 3 microservices (order, stock, email)
  • make a POST request to http://localhost:8081/api/orders or any port
  • with body e.g. { "name": "test name", "qty": 1, "price": 5500 }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors