# atreyakamat/revhire architecture

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

- Interactive diagram: https://gitdiagram.com/atreyakamat/revhire
- Repository: https://github.com/atreyakamat/revhire

## Overview

RevHire is a microservices job portal: users authenticate and manage profiles, employers publish and search jobs, and job seekers submit applications whose status can be reviewed and communicated through notifications. The README documents gateway, service discovery, and centralized configuration as platform capabilities. Sampled code confirms application-to-job checks and notification dispatch, plus notification persistence and email delivery. Resume and profile capabilities are documented, but their internal interactions were not sampled; those components are shown without inferred call paths.

Main entry points: [`infrastructure/api-gateway/src/main/java/com/revhire/gateway/ApiGatewayApplication.java`](https://github.com/atreyakamat/revhire/blob/main/infrastructure/api-gateway/src/main/java/com/revhire/gateway/ApiGatewayApplication.java) (API Gateway), [`services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java`](https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java) (Notification Delivery), [`infrastructure/config-server/src/main/java/com/revhire/config/ConfigServerApplication.java`](https://github.com/atreyakamat/revhire/blob/main/infrastructure/config-server/src/main/java/com/revhire/config/ConfigServerApplication.java) (Central Configuration), [`services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java`](https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java) (Application Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform Infrastructure"]
  node_gateway["API Gateway"]
  node_registry["Service Discovery"]
  node_config["Central Configuration"]
end

subgraph group_identity["Identity and Profiles"]
  node_users["Accounts and Profiles"]
end

subgraph group_hiring["Jobs and Applications"]
  node_jobs["Job Listings<br/>[JobController.java]"]
  node_job_logic["Job Operations"]
  node_applications["Application Workflow"]
  node_application_logic["Application Operations"]
  node_application_store[("Application Store")]
end

subgraph group_communication["Notifications"]
  node_notifications["Notification Delivery"]
  node_notification_store[("Notification Store")]
  node_email["Email Delivery<br/>[EmailService.java]"]
end

subgraph group_resume["Resume Management"]
  node_resumes["Resume Management"]
end

node_client(("External Client"))

node_client -->|"requests"| node_gateway
node_gateway -.->|"routes requests"| node_users
node_gateway -.->|"routes requests"| node_jobs
node_gateway -.->|"routes requests"| node_applications
node_gateway -.->|"routes requests"| node_notifications
node_gateway -.->|"routes requests"| node_resumes
node_users -.->|"registers services"| node_registry
node_jobs -.->|"registers services"| node_registry
node_applications -.->|"registers services"| node_registry
node_notifications -.->|"registers services"| node_registry
node_resumes -.->|"registers services"| node_registry
node_config -.->|"configures"| node_users
node_config -.->|"configures"| node_jobs
node_config -.->|"configures"| node_applications
node_config -.->|"configures"| node_notifications
node_config -.->|"configures"| node_resumes
node_jobs -->|"invokes"| node_job_logic
node_applications -->|"invokes"| node_application_logic
node_applications -->|"fetches job details"| node_jobs
node_application_logic -->|"reads and writes"| node_application_store
node_application_logic -->|"dispatches notification"| node_notifications
node_notifications -->|"reads and writes"| node_notification_store
node_notifications -->|"sends email"| node_email

click node_gateway "https://github.com/atreyakamat/revhire/blob/main/infrastructure/api-gateway/src/main/java/com/revhire/gateway/ApiGatewayApplication.java"
click node_registry "https://github.com/atreyakamat/revhire/blob/main/infrastructure/eureka-server/src/main/java/com/revhire/eureka/EurekaServerApplication.java"
click node_config "https://github.com/atreyakamat/revhire/blob/main/infrastructure/config-server/src/main/java/com/revhire/config/ConfigServerApplication.java"
click node_users "https://github.com/atreyakamat/revhire/blob/main/services/user-service/src/main/java/com/revhire/userservice/service/AuthServiceImpl.java"
click node_jobs "https://github.com/atreyakamat/revhire/blob/main/services/job-service/src/main/java/com/revhire/jobservice/controller/JobController.java"
click node_job_logic "https://github.com/atreyakamat/revhire/blob/main/services/job-service/src/main/java/com/revhire/jobservice/service/JobServiceImpl.java"
click node_applications "https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java"
click node_application_logic "https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/service/ApplicationService.java"
click node_application_store "https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/repository/ApplicationRepository.java"
click node_notifications "https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java"
click node_notification_store "https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/repository/NotificationRepository.java"
click node_email "https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/service/EmailService.java"
click node_resumes "https://github.com/atreyakamat/revhire/blob/main/services/resume-service/src/main/java/com/revhire/resumeservice/service/ResumeServiceImpl.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_registry,node_config,node_client toneBlue
class node_users toneAmber
class node_jobs,node_job_logic,node_applications,node_application_logic,node_application_store toneMint
class node_notifications,node_notification_store,node_email toneRose
class node_resumes toneIndigo
```

## Components

### Platform Infrastructure

- [API Gateway](https://github.com/atreyakamat/revhire/blob/main/infrastructure/api-gateway/src/main/java/com/revhire/gateway/ApiGatewayApplication.java): `infrastructure/api-gateway/src/main/java/com/revhire/gateway/ApiGatewayApplication.java`
- [Service Discovery](https://github.com/atreyakamat/revhire/blob/main/infrastructure/eureka-server/src/main/java/com/revhire/eureka/EurekaServerApplication.java): `infrastructure/eureka-server/src/main/java/com/revhire/eureka/EurekaServerApplication.java`
- [Central Configuration](https://github.com/atreyakamat/revhire/blob/main/infrastructure/config-server/src/main/java/com/revhire/config/ConfigServerApplication.java): `infrastructure/config-server/src/main/java/com/revhire/config/ConfigServerApplication.java`

### Identity and Profiles

- [Accounts and Profiles](https://github.com/atreyakamat/revhire/blob/main/services/user-service/src/main/java/com/revhire/userservice/service/AuthServiceImpl.java): `services/user-service/src/main/java/com/revhire/userservice/service/AuthServiceImpl.java`

### Jobs and Applications

- [Job Listings](https://github.com/atreyakamat/revhire/blob/main/services/job-service/src/main/java/com/revhire/jobservice/controller/JobController.java): `services/job-service/src/main/java/com/revhire/jobservice/controller/JobController.java`
- [Job Operations](https://github.com/atreyakamat/revhire/blob/main/services/job-service/src/main/java/com/revhire/jobservice/service/JobServiceImpl.java): `services/job-service/src/main/java/com/revhire/jobservice/service/JobServiceImpl.java`
- [Application Workflow](https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java): `services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java`
- [Application Operations](https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/service/ApplicationService.java): `services/application-service/src/main/java/com/revhire/applicationservice/service/ApplicationService.java`
- [Application Store](https://github.com/atreyakamat/revhire/blob/main/services/application-service/src/main/java/com/revhire/applicationservice/repository/ApplicationRepository.java): `services/application-service/src/main/java/com/revhire/applicationservice/repository/ApplicationRepository.java`

### Notifications

- [Notification Delivery](https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java): `services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java`
- [Notification Store](https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/repository/NotificationRepository.java): `services/notification-service/src/main/java/com/revhire/notificationservice/repository/NotificationRepository.java`
- [Email Delivery](https://github.com/atreyakamat/revhire/blob/main/services/notification-service/src/main/java/com/revhire/notificationservice/service/EmailService.java): `services/notification-service/src/main/java/com/revhire/notificationservice/service/EmailService.java`

### Resume Management

- [Resume Management](https://github.com/atreyakamat/revhire/blob/main/services/resume-service/src/main/java/com/revhire/resumeservice/service/ResumeServiceImpl.java): `services/resume-service/src/main/java/com/revhire/resumeservice/service/ResumeServiceImpl.java`

### Other components

- **External Client**

## Connections

- External Client → API Gateway: requests (evidence: `README.md`)
- API Gateway → Accounts and Profiles: routes requests (evidence: `README.md`)
- API Gateway → Job Listings: routes requests (evidence: `README.md`)
- API Gateway → Application Workflow: routes requests (evidence: `README.md`)
- API Gateway → Notification Delivery: routes requests (evidence: `README.md`)
- API Gateway → Resume Management: routes requests (evidence: `README.md`)
- Accounts and Profiles → Service Discovery: registers services (evidence: `README.md`)
- Job Listings → Service Discovery: registers services (evidence: `README.md`)
- Application Workflow → Service Discovery: registers services (evidence: `README.md`)
- Notification Delivery → Service Discovery: registers services (evidence: `README.md`)
- Resume Management → Service Discovery: registers services (evidence: `README.md`)
- Central Configuration → Accounts and Profiles: configures (evidence: `README.md`)
- Central Configuration → Job Listings: configures (evidence: `README.md`)
- Central Configuration → Application Workflow: configures (evidence: `README.md`)
- Central Configuration → Notification Delivery: configures (evidence: `README.md`)
- Central Configuration → Resume Management: configures (evidence: `README.md`)
- Job Listings → Job Operations: invokes (evidence: `services/job-service/src/main/java/com/revhire/jobservice/controller/JobController.java`)
- Application Workflow → Application Operations: invokes (evidence: `services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java`)
- Application Workflow → Job Listings: fetches job details (evidence: `services/application-service/src/main/java/com/revhire/applicationservice/controller/ApplicationController.java`)
- Application Operations → Application Store: reads and writes (evidence: `services/application-service/src/main/java/com/revhire/applicationservice/service/ApplicationService.java`)
- Application Operations → Notification Delivery: dispatches notification (evidence: `services/application-service/src/main/java/com/revhire/applicationservice/service/ApplicationService.java`)
- Notification Delivery → Notification Store: reads and writes (evidence: `services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java`)
- Notification Delivery → Email Delivery: sends email (evidence: `services/notification-service/src/main/java/com/revhire/notificationservice/service/NotificationService.java`)
