How ushmans087/digitalwallet works
Digital Wallet is a microservices application for authentication, wallet and bank-account management, transfers, payments, and transaction history. A user accesses the browser interface, which makes authenticated requests through the API Gateway; backend services provide domain operations and use MySQL, Redis, Kafka, and Eureka as documented. The graph preserves documented capabilities and service relationships; most backend source was not sampled, so detailed controller-to-service calls and exact event handlers are not asserted.
Main entry points: api_gateway API gateway · Wallet Wallet and accounts · Payment Payments and transfers · DiscoveryApplication.java Service discovery
Components 14
Client access
- Wallet interface
frontend/dashboard.html - Session and API client
frontend/auth.js
Wallet services
- Authentication
test/src/main/java/com/sample/test/Authentication - API gateway
api-gateway/src/main/java/com/sample/api_gateway - Wallet and accounts
wallet-server/src/main/java/com/sample/wallet_server/Wallet - Bank accounts
wallet-server/src/main/java/com/sample/wallet_server/Bank - Transfer validation
wallet-server/src/main/java/com/sample/wallet_server/Validator - Payments and transfers
payment-server/src/main/java/com/sample/payment_server/Payment - Transaction history
payment-server/src/main/java/com/sample/payment_server/Transactions
Messaging and discovery
- Service discovery
discovery/src/main/java/com/digital_wallet/discovery/DiscoveryApplication.java - Event broker
Data and infrastructure
- MySQL persistence
- Redis cache
Other components
- Wallet user
Connections 20
- Wallet user → Wallet interface: uses
README.md - Wallet interface → Session and API client: uses auth client
- Session and API client → API gateway: sends API requests
frontend/auth.js - API gateway → Authentication: routes requests
- API gateway → Wallet and accounts: routes requests
- API gateway → Bank accounts: routes requests
- API gateway → Payments and transfers: routes requests
- API gateway → Transaction history: routes requests
- Wallet and accounts → Transfer validation: validates transfers
- Payments and transfers → Event broker: publishes events
README.md - Event broker → Wallet and accounts: delivers events
README.md - Authentication → Event broker: publishes registrations
README.md - Event broker → Wallet and accounts: delivers registrations
README.md - Wallet and accounts → MySQL persistence: persists data
README.md - Payments and transfers → MySQL persistence: persists data
README.md - Wallet and accounts → Redis cache: caches wallet data
README.md - API gateway → Service discovery: uses discovery
README.md - Authentication → Service discovery: registers service
README.md - Wallet and accounts → Service discovery: registers service
README.md - Payments and transfers → Service discovery: registers service
README.md