# dileeprepo/banking_application_eks architecture

> Architecture diagram of the GitHub repository dileeprepo/banking_application_eks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dileeprepo/banking_application_eks
- Repository: https://github.com/dileeprepo/banking_application_eks

## Overview

This repository is a React banking portal backed by a Go microservices platform. A browser user registers or signs in, then uses protected account, deposit, transfer, card, loan, and dashboard views; REST requests pass through the API gateway to backend services. Money operations post balanced entries to the ledger, while an outbox can publish events for asynchronous consumers such as audit, fraud, statements, analytics, and reports. The README documents platform-wide storage and communications; sampled startup code confirms the transaction-to-ledger and outbox setup. Unshown service internals are represented by their exact directories.

Main entry points: [`services/api-gateway/internal/proxy/proxy.go`](https://github.com/dileeprepo/banking_application_eks/blob/main/services/api-gateway/internal/proxy/proxy.go) (API gateway), [`frontend/src/App.jsx`](https://github.com/dileeprepo/banking_application_eks/blob/main/frontend/src/App.jsx) (Banking portal), [`services/transaction-service/internal`](https://github.com/dileeprepo/banking_application_eks/tree/main/services/transaction-service/internal) (Money operations), [`services/auth-service/internal`](https://github.com/dileeprepo/banking_application_eks/tree/main/services/auth-service/internal) (Identity and access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Customer web"]
  node_portal["Banking portal<br/>[App.jsx]"]
  node_authui["Login and access<br/>[auth.jsx]"]
  node_views["Account and product views"]
end

subgraph group_entry["API entry"]
  node_gateway["API gateway<br/>[proxy.go]"]
end

subgraph group_banking["Core banking"]
  node_identity["Identity and access"]
  node_accounts["Accounts"]
  node_transactions["Money operations"]
  node_ledger[("Double-entry ledger")]
  node_customer["Customer and profile"]
end

subgraph group_products["Banking products"]
  node_cards["Cards"]
  node_loans["Loans and EMI"]
  node_deposits["Deposit products"]
  node_payments["Payments and wallet"]
end

subgraph group_events["Events and insight"]
  node_eventbus["Kafka event bus"]
  node_outbox["Transactional outbox<br/>[outbox.go]"]
  node_eventreaders["Event consumers"]
  node_insights["Reports and analytics"]
end

subgraph group_platform["Shared platform"]
  node_postgres[("PostgreSQL<br/>[postgres.go]")]
  node_redis[("Redis<br/>[redis.go]")]
  node_http["HTTP server layer<br/>[server.go]"]
  node_grpc["gRPC server layer<br/>[server.go]"]
end

node_browser(("Browser user"))

node_browser -->|"uses"| node_portal
node_portal -->|"protects routes"| node_authui
node_portal -->|"routes to"| node_views
node_portal -->|"REST requests"| node_gateway
node_gateway -->|"routes REST"| node_identity
node_gateway -->|"routes REST"| node_accounts
node_gateway -->|"routes REST"| node_transactions
node_gateway -->|"routes REST"| node_cards
node_gateway -->|"routes REST"| node_loans
node_accounts -->|"gRPC balance access"| node_ledger
node_transactions -->|"posts entries"| node_ledger
node_transactions -->|"emits events"| node_outbox
node_outbox -->|"publishes events"| node_eventbus
node_eventbus -->|"delivers events"| node_eventreaders
node_eventbus -->|"delivers events"| node_insights
node_accounts -->|"persists data"| node_postgres
node_transactions -->|"persists data"| node_postgres
node_identity -->|"stores sessions"| node_redis
node_identity -->|"persists data"| node_postgres

click node_portal "https://github.com/dileeprepo/banking_application_eks/blob/main/frontend/src/App.jsx"
click node_authui "https://github.com/dileeprepo/banking_application_eks/blob/main/frontend/src/auth.jsx"
click node_views "https://github.com/dileeprepo/banking_application_eks/tree/main/frontend/src/pages"
click node_gateway "https://github.com/dileeprepo/banking_application_eks/blob/main/services/api-gateway/internal/proxy/proxy.go"
click node_identity "https://github.com/dileeprepo/banking_application_eks/tree/main/services/auth-service/internal"
click node_accounts "https://github.com/dileeprepo/banking_application_eks/tree/main/services/account-service/internal"
click node_transactions "https://github.com/dileeprepo/banking_application_eks/tree/main/services/transaction-service/internal"
click node_ledger "https://github.com/dileeprepo/banking_application_eks/tree/main/services/ledger-service/internal"
click node_customer "https://github.com/dileeprepo/banking_application_eks/tree/main/services/customer-service/internal"
click node_cards "https://github.com/dileeprepo/banking_application_eks/tree/main/services/card-service/internal"
click node_loans "https://github.com/dileeprepo/banking_application_eks/tree/main/services/loan-service/internal"
click node_deposits "https://github.com/dileeprepo/banking_application_eks/tree/main/services/fixed-deposit-service/internal"
click node_payments "https://github.com/dileeprepo/banking_application_eks/tree/main/services/payment-service/internal"
click node_eventbus "https://github.com/dileeprepo/banking_application_eks/tree/main/pkg/kafka"
click node_outbox "https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/outbox/outbox.go"
click node_eventreaders "https://github.com/dileeprepo/banking_application_eks/tree/main/services/audit-service/internal"
click node_insights "https://github.com/dileeprepo/banking_application_eks/tree/main/services/reports-service/internal"
click node_postgres "https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/postgres/postgres.go"
click node_redis "https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/redis/redis.go"
click node_http "https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/httpserver/server.go"
click node_grpc "https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/grpcserver/server.go"

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_portal,node_authui,node_views,node_browser toneBlue
class node_gateway toneAmber
class node_identity,node_accounts,node_transactions,node_ledger,node_customer toneMint
class node_cards,node_loans,node_deposits,node_payments toneRose
class node_eventbus,node_outbox,node_eventreaders,node_insights toneIndigo
class node_postgres,node_redis,node_http,node_grpc toneTeal
```

## Components

### Customer web

- [Banking portal](https://github.com/dileeprepo/banking_application_eks/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Login and access](https://github.com/dileeprepo/banking_application_eks/blob/main/frontend/src/auth.jsx): `frontend/src/auth.jsx`
- [Account and product views](https://github.com/dileeprepo/banking_application_eks/tree/main/frontend/src/pages): `frontend/src/pages`

### API entry

- [API gateway](https://github.com/dileeprepo/banking_application_eks/blob/main/services/api-gateway/internal/proxy/proxy.go): `services/api-gateway/internal/proxy/proxy.go`

### Core banking

- [Identity and access](https://github.com/dileeprepo/banking_application_eks/tree/main/services/auth-service/internal): `services/auth-service/internal`
- [Accounts](https://github.com/dileeprepo/banking_application_eks/tree/main/services/account-service/internal): `services/account-service/internal`
- [Money operations](https://github.com/dileeprepo/banking_application_eks/tree/main/services/transaction-service/internal): `services/transaction-service/internal`
- [Double-entry ledger](https://github.com/dileeprepo/banking_application_eks/tree/main/services/ledger-service/internal): `services/ledger-service/internal`
- [Customer and profile](https://github.com/dileeprepo/banking_application_eks/tree/main/services/customer-service/internal): `services/customer-service/internal`

### Banking products

- [Cards](https://github.com/dileeprepo/banking_application_eks/tree/main/services/card-service/internal): `services/card-service/internal`
- [Loans and EMI](https://github.com/dileeprepo/banking_application_eks/tree/main/services/loan-service/internal): `services/loan-service/internal`
- [Deposit products](https://github.com/dileeprepo/banking_application_eks/tree/main/services/fixed-deposit-service/internal): `services/fixed-deposit-service/internal`
- [Payments and wallet](https://github.com/dileeprepo/banking_application_eks/tree/main/services/payment-service/internal): `services/payment-service/internal`

### Events and insight

- [Kafka event bus](https://github.com/dileeprepo/banking_application_eks/tree/main/pkg/kafka): `pkg/kafka`
- [Transactional outbox](https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/outbox/outbox.go): `pkg/outbox/outbox.go`
- [Event consumers](https://github.com/dileeprepo/banking_application_eks/tree/main/services/audit-service/internal): `services/audit-service/internal`
- [Reports and analytics](https://github.com/dileeprepo/banking_application_eks/tree/main/services/reports-service/internal): `services/reports-service/internal`

### Shared platform

- [PostgreSQL](https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/postgres/postgres.go): `pkg/postgres/postgres.go`
- [Redis](https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/redis/redis.go): `pkg/redis/redis.go`
- [HTTP server layer](https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/httpserver/server.go): `pkg/httpserver/server.go`
- [gRPC server layer](https://github.com/dileeprepo/banking_application_eks/blob/main/pkg/grpcserver/server.go): `pkg/grpcserver/server.go`

### Other components

- **Browser user**

## Connections

- Browser user → Banking portal: uses (evidence: `README.md`)
- Banking portal → Login and access: protects routes (evidence: `frontend/src/App.jsx`)
- Banking portal → Account and product views: routes to (evidence: `frontend/src/App.jsx`)
- Banking portal → API gateway: REST requests (evidence: `README.md`)
- API gateway → Identity and access: routes REST (evidence: `README.md`)
- API gateway → Accounts: routes REST (evidence: `README.md`)
- API gateway → Money operations: routes REST (evidence: `README.md`)
- API gateway → Cards: routes REST (evidence: `README.md`)
- API gateway → Loans and EMI: routes REST (evidence: `README.md`)
- Accounts → Double-entry ledger: gRPC balance access (evidence: `README.md`)
- Money operations → Double-entry ledger: posts entries
- Money operations → Transactional outbox: emits events
- Transactional outbox → Kafka event bus: publishes events
- Kafka event bus → Event consumers: delivers events (evidence: `README.md`)
- Kafka event bus → Reports and analytics: delivers events (evidence: `README.md`)
- Accounts → PostgreSQL: persists data (evidence: `README.md`)
- Money operations → PostgreSQL: persists data (evidence: `README.md`)
- Identity and access → Redis: stores sessions
- Identity and access → PostgreSQL: persists data
