# itsjeet007y1/microservices architecture

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

- Interactive diagram: https://gitdiagram.com/itsjeet007y1/microservices
- Repository: https://github.com/itsjeet007y1/microservices

## Overview

This is a Spring Boot microservices application for user CRUD, with a Zuul API gateway and Eureka discovery/monitoring. The documented user workflow is a client request to the gateway (or directly to the user service), then CRUD handling backed by in-memory MongoDB. The tree also contains an address service, but the README does not describe its behavior or connections; source excerpts were unavailable, so its relationships are omitted.

Main entry points: [`user-service/src/main/java/com/example/demo/controller/UserController.java`](https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/controller/UserController.java) (User REST API), [`api-gateway/src/main/java/com/example/demo/ApiGatewayApplication.java`](https://github.com/itsjeet007y1/microservices/blob/master/api-gateway/src/main/java/com/example/demo/ApiGatewayApplication.java) (API Gateway), [`eureka-discovery-server/src/main/java/com/example/demo/EurekaDiscoveryServerApplication.java`](https://github.com/itsjeet007y1/microservices/blob/master/eureka-discovery-server/src/main/java/com/example/demo/EurekaDiscoveryServerApplication.java) (Eureka Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Request Entry"]
  node_gateway["API Gateway"]
end

subgraph group_user["User Service"]
  node_user_controller["User REST API"]
  node_user_logic["User CRUD Logic<br/>[UserService.java]"]
  node_user_repository["User Repository"]
  node_address_service["Address Service"]
end

subgraph group_platform["Service Platform"]
  node_mongo[("In-memory MongoDB")]
  node_eureka["Eureka Server"]
end

node_client(("API Client"))

node_client -->|"sends requests"| node_gateway
node_client -->|"calls directly"| node_user_controller
node_gateway -->|"delegates requests"| node_user_controller
node_user_controller -->|"performs CRUD"| node_mongo
node_eureka -->|"monitors services"| node_gateway
node_eureka -->|"monitors services"| node_user_controller

click node_gateway "https://github.com/itsjeet007y1/microservices/blob/master/api-gateway/src/main/java/com/example/demo/ApiGatewayApplication.java"
click node_user_controller "https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/controller/UserController.java"
click node_user_logic "https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/service/impl/UserService.java"
click node_user_repository "https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/repository/UserRepository.java"
click node_eureka "https://github.com/itsjeet007y1/microservices/blob/master/eureka-discovery-server/src/main/java/com/example/demo/EurekaDiscoveryServerApplication.java"
click node_address_service "https://github.com/itsjeet007y1/microservices/blob/master/address-service/src/main/java/com/example/demo/AddressServiceApplication.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_gateway,node_client toneBlue
class node_user_controller,node_user_logic,node_user_repository,node_address_service toneAmber
class node_mongo,node_eureka toneMint
```

## Components

### Request Entry

- [API Gateway](https://github.com/itsjeet007y1/microservices/blob/master/api-gateway/src/main/java/com/example/demo/ApiGatewayApplication.java): `api-gateway/src/main/java/com/example/demo/ApiGatewayApplication.java`

### User Service

- [User REST API](https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/controller/UserController.java): `user-service/src/main/java/com/example/demo/controller/UserController.java`
- [User CRUD Logic](https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/service/impl/UserService.java): `user-service/src/main/java/com/example/demo/service/impl/UserService.java`
- [User Repository](https://github.com/itsjeet007y1/microservices/blob/master/user-service/src/main/java/com/example/demo/repository/UserRepository.java): `user-service/src/main/java/com/example/demo/repository/UserRepository.java`
- [Address Service](https://github.com/itsjeet007y1/microservices/blob/master/address-service/src/main/java/com/example/demo/AddressServiceApplication.java): `address-service/src/main/java/com/example/demo/AddressServiceApplication.java`

### Service Platform

- **In-memory MongoDB**
- [Eureka Server](https://github.com/itsjeet007y1/microservices/blob/master/eureka-discovery-server/src/main/java/com/example/demo/EurekaDiscoveryServerApplication.java): `eureka-discovery-server/src/main/java/com/example/demo/EurekaDiscoveryServerApplication.java`

### Other components

- **API Client**

## Connections

- API Client → API Gateway: sends requests (evidence: `README.md`)
- API Client → User REST API: calls directly (evidence: `README.md`)
- API Gateway → User REST API: delegates requests (evidence: `README.md`)
- User REST API → In-memory MongoDB: performs CRUD (evidence: `README.md`)
- Eureka Server → API Gateway: monitors services (evidence: `README.md`)
- Eureka Server → User REST API: monitors services (evidence: `README.md`)
