okanyesil / Apache-kafka-spring-boot-python-angular-example

This repository about implementing Kafka stream in microservices architecture java spring boot

Repository from Github https://github.comokanyesil/Apache-kafka-spring-boot-python-angular-exampleRepository from Github https://github.comokanyesil/Apache-kafka-spring-boot-python-angular-example

Apache kafka spring boot python angular example

This repository has two project FrontEnd(Angular) and BackEnd(Java, Python)

Project Structure

tasarım

If you new in Apache kafka you can bootstrap it quickly using Confluent's image: link

Let's talk about backend firstly

I have 5 services in my backend this are

  • Payment Service
  • Customer Service
  • Order Service
  • Product Service
  • Stock Service

Payment Service

This service is responsible for connecting to Iyzico server and getting payment. There was a problem with the java package so I used python instead. The service is listening to Apache Kafka topic whose name is t_stock runs on 9092 port. If the payment gets. The service redirects the user Success Page otherwise throw an error

iyzico

başarılı

Customer Service

This service is responsible for authenticating users and registering user

Order Service

This service is responble for listening to Kafka payment_event topic. If the payment is successful this service creates Order in OrderDB

Product Service

This service is responsible comminicate with UI-service. The service returns products and filters them.

Stock Service

This service work with Product service and Order Service before user buy. this service control wanted product in the stock.

Secondly frontend Section

Frontend is writen with Angular If you want to run it. run npm install then ng serve Make sure you have Node.js and Angular CLI

ui

ui2

About

This repository about implementing Kafka stream in microservices architecture java spring boot


Languages

Language:TypeScript 44.4%Language:Java 34.1%Language:Python 7.3%Language:HTML 7.2%Language:JavaScript 3.6%Language:SCSS 3.5%