Skip to content

tigllon/spring-boot-distributed-transactions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-distributed-transactions

This repo contains code of the micro-services performing distributed transaction by leveraging Kafka's transactional capabilities.

Miroservice Architecture

Architecture

Usage

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

hitting order-ms's controller with postman at /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.

About

This repo contains code of the micro-services performing distributed transaction by leveraging Kafka's transactional capabilities.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages