# chxxlk/webservice architecture

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

- Interactive diagram: https://gitdiagram.com/chxxlk/webservice
- Repository: https://github.com/chxxlk/webservice

## Overview

This repository is a collection of Java networking and service examples rather than one integrated application: it includes RMI exercises and case studies, raw-socket client/server pairs, student/course management variants, and a small Spring Boot web service. The typical RMI workflow is a user-operated client looking up a remote service, invoking its interface, and receiving results from a server-side implementation. The graph keeps these examples separate. Evidence is limited to the supplied excerpts and SOURCE INDEX references; unsampled connections are omitted.

Main entry points: [`Client_Server_RMI/src/RMIClient.java`](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIClient.java) (Hello Client), [`Client_Server_RMI/src/App.java`](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/App.java) (Demo Launcher), [`Client_Server_RMI/src/RMIServer.java`](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIServer.java) (Hello Server), [`Tugas/rmi/src/Client.java`](https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/Client.java) (Counter Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rmi_basics["RMI Examples"]
  node_hello_client["Hello Client<br/>[RMIClient.java]"]
  node_hello_interface["Hello Contract"]
  node_hello_impl["Hello Service"]
  node_hello_server["Hello Server<br/>[RMIServer.java]"]
  node_hello_launcher["Demo Launcher<br/>[App.java]"]
  node_counter_client["Counter Client<br/>[Client.java]"]
  node_counter_contract["Counter Contract"]
  node_counter_impl["Counter Service"]
  node_counter_server["Counter Server<br/>[Server.java]"]
end

subgraph group_rmi_cases["RMI Case Studies"]
  node_calculator_client["Calculator Client"]
  node_calculator_contract["Calculator Contract"]
  node_calculator_impl["Calculator Logic"]
  node_calculator_server["Calculator Server"]
  node_task_client["Task Client"]
  node_task_contract["Task Contract"]
  node_task_impl["Task Service"]
  node_task_server["Task Server"]
  node_library_client["Library Client<br/>[LibraryClient.java]"]
  node_library_contract["Library Contract"]
  node_library_impl["Library Service"]
  node_library_server["Library Server<br/>[LibraryServer.java]"]
end

subgraph group_student_apps["Student Systems"]
  node_attendance_client["Attendance Client<br/>[AbsenClient.java]"]
  node_attendance_contract["Attendance Contract"]
  node_attendance_impl["Attendance Service"]
  node_attendance_server["Attendance Server<br/>[AbsenServer.java]"]
  node_quiz_client["Quiz Client<br/>[Client.java]"]
  node_quiz_registry["Quiz Registry"]
  node_quiz_students["Student Service"]
  node_quiz_courses["Course Service"]
  node_quiz_kst["KST Service"]
  node_tts_client["TTS Client<br/>[Client.java]"]
  node_tts_registry["TTS Registry"]
  node_tts_students["Student Service"]
end

subgraph group_socket_apps["Socket Examples"]
end

subgraph group_web_service["Spring Web Service"]
end

node_user(("User"))

node_user -->|"uses"| node_hello_client
node_hello_client -->|"invokes"| node_hello_interface
node_hello_server -->|"registers"| node_hello_impl
node_hello_launcher -->|"starts"| node_hello_server
node_hello_launcher -->|"starts"| node_hello_client
node_user -->|"uses"| node_calculator_client
node_calculator_client -->|"invokes"| node_calculator_contract
node_calculator_impl -->|"implements"| node_calculator_contract
node_calculator_server -->|"registers"| node_calculator_impl
node_user -->|"uses"| node_task_client
node_task_client -->|"invokes"| node_task_contract
node_task_impl -->|"implements"| node_task_contract
node_task_server -->|"registers"| node_task_impl
node_user -->|"uses"| node_counter_client
node_counter_client -->|"invokes"| node_counter_contract
node_counter_impl -->|"implements"| node_counter_contract
node_counter_server -->|"registers"| node_counter_impl
node_user -->|"uses"| node_library_client
node_library_client -->|"invokes"| node_library_contract
node_library_impl -->|"implements"| node_library_contract
node_user -->|"uses"| node_attendance_client
node_attendance_client -->|"invokes"| node_attendance_contract
node_attendance_impl -->|"implements"| node_attendance_contract
node_user -->|"uses"| node_quiz_client
node_user -->|"uses"| node_tts_client

click node_hello_client "https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIClient.java"
click node_hello_interface "https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/MyRemoteInterface.java"
click node_hello_impl "https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/MyRemoteImplementation.java"
click node_hello_server "https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIServer.java"
click node_hello_launcher "https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/App.java"
click node_calculator_client "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorClient.java"
click node_calculator_contract "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorInterface.java"
click node_calculator_impl "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorImplementation.java"
click node_calculator_server "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorServer.java"
click node_task_client "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerClient.java"
click node_task_contract "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerInterface.java"
click node_task_impl "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerImplementation.java"
click node_task_server "https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerServer.java"
click node_counter_client "https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/Client.java"
click node_counter_contract "https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/CounterInterface.java"
click node_counter_impl "https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/CounterImplementation.java"
click node_counter_server "https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/Server.java"
click node_library_client "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryClient.java"
click node_library_contract "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryInterface.java"
click node_library_impl "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryImplementation.java"
click node_library_server "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryServer.java"
click node_attendance_client "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenClient.java"
click node_attendance_contract "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenInterface.java"
click node_attendance_impl "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenImplementation.java"
click node_attendance_server "https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenServer.java"
click node_quiz_client "https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/Client.java"
click node_quiz_registry "https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/RegistryCenter.java"
click node_quiz_students "https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/MahasiswaImplementation.java"
click node_quiz_courses "https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/MatakuliahImplementation.java"
click node_quiz_kst "https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/KstImplementation.java"
click node_tts_client "https://github.com/chxxlk/webservice/blob/main/TTS/Client.java"
click node_tts_registry "https://github.com/chxxlk/webservice/blob/main/TTS/RegistryCenter.java"
click node_tts_students "https://github.com/chxxlk/webservice/blob/main/TTS/MahasiswaImplementation.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_hello_client,node_hello_interface,node_hello_impl,node_hello_server,node_hello_launcher,node_counter_client,node_counter_contract,node_counter_impl,node_counter_server,node_user toneBlue
class node_calculator_client,node_calculator_contract,node_calculator_impl,node_calculator_server,node_task_client,node_task_contract,node_task_impl,node_task_server,node_library_client,node_library_contract,node_library_impl,node_library_server toneAmber
class node_attendance_client,node_attendance_contract,node_attendance_impl,node_attendance_server,node_quiz_client,node_quiz_registry,node_quiz_students,node_quiz_courses,node_quiz_kst,node_tts_client,node_tts_registry,node_tts_students toneMint
```

## Components

### RMI Examples

- [Hello Client](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIClient.java): `Client_Server_RMI/src/RMIClient.java`
- [Hello Contract](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/MyRemoteInterface.java): `Client_Server_RMI/src/MyRemoteInterface.java`
- [Hello Service](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/MyRemoteImplementation.java): `Client_Server_RMI/src/MyRemoteImplementation.java`
- [Hello Server](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/RMIServer.java): `Client_Server_RMI/src/RMIServer.java`
- [Demo Launcher](https://github.com/chxxlk/webservice/blob/main/Client_Server_RMI/src/App.java): `Client_Server_RMI/src/App.java`
- [Counter Client](https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/Client.java): `Tugas/rmi/src/Client.java`
- [Counter Contract](https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/CounterInterface.java): `Tugas/rmi/src/CounterInterface.java`
- [Counter Service](https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/CounterImplementation.java): `Tugas/rmi/src/CounterImplementation.java`
- [Counter Server](https://github.com/chxxlk/webservice/blob/main/Tugas/rmi/src/Server.java): `Tugas/rmi/src/Server.java`

### RMI Case Studies

- [Calculator Client](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorClient.java): `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorClient.java`
- [Calculator Contract](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorInterface.java): `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorInterface.java`
- [Calculator Logic](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorImplementation.java): `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorImplementation.java`
- [Calculator Server](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorServer.java): `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorServer.java`
- [Task Client](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerClient.java): `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerClient.java`
- [Task Contract](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerInterface.java): `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerInterface.java`
- [Task Service](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerImplementation.java): `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerImplementation.java`
- [Task Server](https://github.com/chxxlk/webservice/blob/main/RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerServer.java): `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerServer.java`
- [Library Client](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryClient.java): `Tugas/tugas-rmi/LibraryClient.java`
- [Library Contract](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryInterface.java): `Tugas/tugas-rmi/LibraryInterface.java`
- [Library Service](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryImplementation.java): `Tugas/tugas-rmi/LibraryImplementation.java`
- [Library Server](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi/LibraryServer.java): `Tugas/tugas-rmi/LibraryServer.java`

### Student Systems

- [Attendance Client](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenClient.java): `Tugas/tugas-rmi-2/AbsenClient.java`
- [Attendance Contract](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenInterface.java): `Tugas/tugas-rmi-2/AbsenInterface.java`
- [Attendance Service](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenImplementation.java): `Tugas/tugas-rmi-2/AbsenImplementation.java`
- [Attendance Server](https://github.com/chxxlk/webservice/blob/main/Tugas/tugas-rmi-2/AbsenServer.java): `Tugas/tugas-rmi-2/AbsenServer.java`
- [Quiz Client](https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/Client.java): `Kuis/Kuis-1/Client.java`
- [Quiz Registry](https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/RegistryCenter.java): `Kuis/Kuis-1/RegistryCenter.java`
- [Student Service](https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/MahasiswaImplementation.java): `Kuis/Kuis-1/MahasiswaImplementation.java`
- [Course Service](https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/MatakuliahImplementation.java): `Kuis/Kuis-1/MatakuliahImplementation.java`
- [KST Service](https://github.com/chxxlk/webservice/blob/main/Kuis/Kuis-1/KstImplementation.java): `Kuis/Kuis-1/KstImplementation.java`
- [TTS Client](https://github.com/chxxlk/webservice/blob/main/TTS/Client.java): `TTS/Client.java`
- [TTS Registry](https://github.com/chxxlk/webservice/blob/main/TTS/RegistryCenter.java): `TTS/RegistryCenter.java`
- [Student Service](https://github.com/chxxlk/webservice/blob/main/TTS/MahasiswaImplementation.java): `TTS/MahasiswaImplementation.java`

### Other components

- **User**

## Connections

- User → Hello Client: uses
- Hello Client → Hello Contract: invokes (evidence: `Client_Server_RMI/src/RMIClient.java`)
- Hello Server → Hello Service: registers (evidence: `Client_Server_RMI/src/RMIServer.java`)
- Demo Launcher → Hello Server: starts (evidence: `Client_Server_RMI/src/App.java`)
- Demo Launcher → Hello Client: starts (evidence: `Client_Server_RMI/src/App.java`)
- User → Calculator Client: uses
- Calculator Client → Calculator Contract: invokes (evidence: `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorClient.java`)
- Calculator Logic → Calculator Contract: implements (evidence: `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorImplementation.java`)
- Calculator Server → Calculator Logic: registers (evidence: `RMI_StudiKasus/Kalkultor_Terdistribusi/src/CalculatorServer.java`)
- User → Task Client: uses
- Task Client → Task Contract: invokes (evidence: `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerClient.java`)
- Task Service → Task Contract: implements (evidence: `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerImplementation.java`)
- Task Server → Task Service: registers (evidence: `RMI_StudiKasus/Manajemen_Tugas/src/TaskManagerServer.java`)
- User → Counter Client: uses
- Counter Client → Counter Contract: invokes (evidence: `Tugas/rmi/src/Client.java`)
- Counter Service → Counter Contract: implements (evidence: `Tugas/rmi/src/CounterImplementation.java`)
- Counter Server → Counter Service: registers (evidence: `Tugas/rmi/src/Server.java`)
- User → Library Client: uses
- Library Client → Library Contract: invokes (evidence: `Tugas/tugas-rmi/LibraryClient.java`)
- Library Service → Library Contract: implements (evidence: `Tugas/tugas-rmi/LibraryImplementation.java`)
- User → Attendance Client: uses
- Attendance Client → Attendance Contract: invokes (evidence: `Tugas/tugas-rmi-2/AbsenClient.java`)
- Attendance Service → Attendance Contract: implements (evidence: `Tugas/tugas-rmi-2/AbsenImplementation.java`)
- User → Quiz Client: uses
- User → TTS Client: uses
