MCPcopy Index your code
hub / github.com/KaoutharAsma/nestjs-kafka-saga-pattern

github.com/KaoutharAsma/nestjs-kafka-saga-pattern @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
158 symbols 253 edges 48 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NestJS Kafka Saga Pattern

This repository is an implementation of the Saga Pattern using NestJS and Apache Kafka. For more information, check out this article.

To run this project, make sure Docker is installed on your machine, and then execute the following command: ```bash docker compose up -d

Extension points exported contracts — how you extend this code

PaymentServiceInterface (Interface)
(no doc) [3 implementers]
payment/src/services/payment.service.interface.ts
OrderServiceInterface (Interface)
(no doc) [3 implementers]
order/src/services/order.service.interface.ts
ProductServiceInterface (Interface)
(no doc) [2 implementers]
inventory/src/services/product.service.interface.ts
PaymentRepositoryInterface (Interface)
(no doc) [2 implementers]
payment/src/repositories/payment.repository.interface.ts
OrderRepositoryInterface (Interface)
(no doc) [3 implementers]
order/src/repositories/order.repository.interface.ts
ProductRepositoryInterface (Interface)
(no doc) [2 implementers]
inventory/src/repositories/product.repository.interface.ts

Core symbols most depended-on inside this repo

update
called by 3
order/src/repositories/order.repository.interface.ts
findMany
called by 3
inventory/src/repositories/product.repository.interface.ts
cancel
called by 2
order/src/entities/order.ts
updateMany
called by 2
inventory/src/repositories/product.repository.interface.ts
bootstrap
called by 1
payment/src/main.ts
authorizePayment
called by 1
payment/src/services/payment.service.interface.ts
refund
called by 1
payment/src/services/payment.service.interface.ts
authroize
called by 1
payment/src/entities/payment.ts

Shape

Method 88
Class 59
Interface 6
Function 3
Enum 2

Languages

TypeScript100%

Modules by API surface

order/src/entities/order.ts10 symbols
payment/src/entities/payment.ts9 symbols
inventory/src/entities/product.ts8 symbols
order/src/entities/order-item.ts7 symbols
order/src/usecases/create-order/saga/steps/update-stock.step.ts6 symbols
order/src/usecases/create-order/saga/steps/check-product-availibilty.step.ts6 symbols
order/src/usecases/create-order/saga/steps/authorize-payment.step.ts6 symbols
inventory/src/services/product.service.ts6 symbols
payment/src/usecases/authorize-payment/authorize-payment.controller.ts5 symbols
payment/src/services/payment.service.ts5 symbols
payment/src/repositories/memory/payment.repository.ts5 symbols
order/src/usecases/create-order/saga/steps/place-order.step.ts5 symbols

For agents

$ claude mcp add nestjs-kafka-saga-pattern \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page