This repo contains code of the micro-services performing distributed transaction by leveraging Kafka's transactional capabilities.
First of all we need to start the zookeeper service followed by the kafka server service. Follow the step 1 & 2 in the documentation in order to run these services.
Now we need to start the microservices present in our repo i.e payment-ms, order-ms & stock-ms respectively. Once they get stated , now we can hit the payment microservice's controller with /api/orders
As soon as we hit, the payment-ms pushes events to the apache kafka with whom the other microservices connects and thus the distributed transactions take place.

