# bejawadasivakumar/event-driven-banking-system-spring-boot-microservices- architecture

> Architecture diagram of the GitHub repository bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-
- Repository: https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-

## Overview

The repository is a small distributed banking application: it has separate authentication, account, transaction, and notification services, plus a browser frontend. The tree indicates signup/login and email verification, account management, transaction handling, and email notification as distinct capabilities. No source excerpts or README prose document runtime calls, message routes, or persistence behavior, so the graph does not assert connections between components; paths identify the visible implementation areas only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client"]
  node_frontend["Banking frontend"]
end

subgraph group_identity["Identity"]
  node_auth_api["User API"]
  node_verification_api["Email verification API"]
  node_user_service["User service<br/>[UserService.java]"]
  node_email_verification["Email verification"]
  node_auth_events["OTP email producer"]
end

subgraph group_accounts["Accounts"]
  node_account_api["Account API"]
  node_account_service["Account service"]
  node_account_store[("Account repository")]
  node_account_events["Account email producer"]
end

subgraph group_transactions["Transactions"]
  node_transaction_api["Transaction API"]
  node_transaction_service["Transaction service"]
  node_account_client["Account client<br/>[AccountClient.java]"]
  node_transaction_store[("Transaction repository")]
  node_transaction_events["Transaction email producer"]
end

subgraph group_notifications["Notifications"]
  node_email_listener["Email event listener"]
  node_email_service["Email notification service"]
  node_email_store[("Email notification repository")]
end

node_user(("Banking user"))
node_message_broker["RabbitMQ broker"]

click node_frontend "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/bankingfrontend.html"
click node_auth_api "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/controller/UserController.java"
click node_verification_api "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/controller/EmailVerificationController.java"
click node_user_service "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/service/UserService.java"
click node_email_verification "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/service/EmailVerificationService.java"
click node_account_api "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Controller/AccountController.java"
click node_account_service "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Service/AccountService.java"
click node_account_store "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Repository/AccountRepository.java"
click node_transaction_api "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/controller/TransactionController.java"
click node_transaction_service "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/service/TransactionService.java"
click node_account_client "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/config/AccountClient.java"
click node_transaction_store "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/repository/TransactionRepository.java"
click node_account_events "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/producer/AccountEmailNotificationProducer.java"
click node_auth_events "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/producer/OtpVerificationNotificationProducer.java"
click node_transaction_events "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/producer/TransactionEmailNotificationProducer.java"
click node_email_listener "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/consumer/EmailNotificationListener.java"
click node_email_service "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/service/EmailNotificationService.java"
click node_email_store "https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/repository/EmailNotificationRepository.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_frontend,node_user toneBlue
class node_auth_api,node_verification_api,node_user_service,node_email_verification,node_auth_events toneAmber
class node_account_api,node_account_service,node_account_store,node_account_events toneMint
class node_transaction_api,node_transaction_service,node_account_client,node_transaction_store,node_transaction_events toneRose
class node_email_listener,node_email_service,node_email_store,node_message_broker toneIndigo
```

## Components

### Client

- [Banking frontend](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/bankingfrontend.html): `bankingfrontend.html`

### Identity

- [User API](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/controller/UserController.java): `AuthService/src/main/java/com/example/demo/controller/UserController.java`
- [Email verification API](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/controller/EmailVerificationController.java): `AuthService/src/main/java/com/example/demo/controller/EmailVerificationController.java`
- [User service](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/service/UserService.java): `AuthService/src/main/java/com/example/demo/service/UserService.java`
- [Email verification](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/service/EmailVerificationService.java): `AuthService/src/main/java/com/example/demo/service/EmailVerificationService.java`
- [OTP email producer](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AuthService/src/main/java/com/example/demo/producer/OtpVerificationNotificationProducer.java): `AuthService/src/main/java/com/example/demo/producer/OtpVerificationNotificationProducer.java`

### Accounts

- [Account API](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Controller/AccountController.java): `AccountService/src/main/java/com/example/demo/Controller/AccountController.java`
- [Account service](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Service/AccountService.java): `AccountService/src/main/java/com/example/demo/Service/AccountService.java`
- [Account repository](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/Repository/AccountRepository.java): `AccountService/src/main/java/com/example/demo/Repository/AccountRepository.java`
- [Account email producer](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/AccountService/src/main/java/com/example/demo/producer/AccountEmailNotificationProducer.java): `AccountService/src/main/java/com/example/demo/producer/AccountEmailNotificationProducer.java`

### Transactions

- [Transaction API](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/controller/TransactionController.java): `TransactionService1/src/main/java/com/example/demo/controller/TransactionController.java`
- [Transaction service](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/service/TransactionService.java): `TransactionService1/src/main/java/com/example/demo/service/TransactionService.java`
- [Account client](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/config/AccountClient.java): `TransactionService1/src/main/java/com/example/demo/config/AccountClient.java`
- [Transaction repository](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/repository/TransactionRepository.java): `TransactionService1/src/main/java/com/example/demo/repository/TransactionRepository.java`
- [Transaction email producer](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/TransactionService1/src/main/java/com/example/demo/producer/TransactionEmailNotificationProducer.java): `TransactionService1/src/main/java/com/example/demo/producer/TransactionEmailNotificationProducer.java`

### Notifications

- [Email event listener](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/consumer/EmailNotificationListener.java): `NotificationService1/src/main/java/com/example/demo/consumer/EmailNotificationListener.java`
- [Email notification service](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/service/EmailNotificationService.java): `NotificationService1/src/main/java/com/example/demo/service/EmailNotificationService.java`
- [Email notification repository](https://github.com/bejawadasivakumar/event-driven-banking-system-spring-boot-microservices-/blob/main/NotificationService1/src/main/java/com/example/demo/repository/EmailNotificationRepository.java): `NotificationService1/src/main/java/com/example/demo/repository/EmailNotificationRepository.java`

### Other components

- **Banking user**
- **RabbitMQ broker**
